Update Dockerfile
Browse files- Dockerfile +9 -7
Dockerfile
CHANGED
@@ -16,17 +16,19 @@ ENV MPLCONFIGDIR=/tmp/matplotlib
|
|
16 |
ENV FONTCONFIG_PATH=/etc/fonts
|
17 |
|
18 |
# Create needed directories with correct permissions
|
19 |
-
RUN mkdir /tmp/matplotlib
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
# Copy the rest of the application code
|
25 |
COPY . /src
|
26 |
|
27 |
-
# Ensure
|
28 |
-
RUN mkdir -p /src/
|
29 |
-
|
|
|
|
|
30 |
|
31 |
# Set the entry point to run the prediction script
|
32 |
ENTRYPOINT ["python", "predict.py"]
|
|
|
16 |
ENV FONTCONFIG_PATH=/etc/fonts
|
17 |
|
18 |
# Create needed directories with correct permissions
|
19 |
+
RUN mkdir /tmp/matplotlib && \
|
20 |
+
mkdir -p /usr/share/fonts && \
|
21 |
+
mkdir -p /src/fonts && \
|
22 |
+
chmod -R 777 /tmp /usr/share/fonts /src/fonts
|
23 |
|
24 |
# Copy the rest of the application code
|
25 |
COPY . /src
|
26 |
|
27 |
+
# Ensure the directory 'flagged' is writable
|
28 |
+
RUN mkdir -p /src/flagged && chmod 777 /src/flagged
|
29 |
+
|
30 |
+
# Set the working directory
|
31 |
+
WORKDIR /src
|
32 |
|
33 |
# Set the entry point to run the prediction script
|
34 |
ENTRYPOINT ["python", "predict.py"]
|