Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -4,13 +4,15 @@ WORKDIR /app
|
|
4 |
|
5 |
COPY . /app
|
6 |
|
7 |
-
# Create
|
8 |
RUN mkdir -p /app/output && \
|
9 |
mkdir -p /app/matplotlib && \
|
10 |
mkdir -p /app/ipython && \
|
11 |
mkdir -p /app/kernels && \
|
12 |
-
chmod -R 777 /app && \
|
13 |
-
chmod -R 777 /
|
|
|
|
|
14 |
|
15 |
# Set environment variables
|
16 |
ENV MPLCONFIGDIR=/app/matplotlib
|
|
|
4 |
|
5 |
COPY . /app
|
6 |
|
7 |
+
# Create necessary directories and set permissions only for what we need
|
8 |
RUN mkdir -p /app/output && \
|
9 |
mkdir -p /app/matplotlib && \
|
10 |
mkdir -p /app/ipython && \
|
11 |
mkdir -p /app/kernels && \
|
12 |
+
chmod -R 777 /app/output && \
|
13 |
+
chmod -R 777 /app/matplotlib && \
|
14 |
+
chmod -R 777 /app/ipython && \
|
15 |
+
chmod -R 777 /app/kernels
|
16 |
|
17 |
# Set environment variables
|
18 |
ENV MPLCONFIGDIR=/app/matplotlib
|