Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -17,14 +17,16 @@ ENV FONTCONFIG_PATH=/etc/fonts
|
|
17 |
|
18 |
# Create needed directories with correct permissions
|
19 |
RUN mkdir /tmp/matplotlib
|
20 |
-
|
21 |
-
|
|
|
22 |
|
23 |
# Copy the rest of the application code
|
24 |
COPY . /src
|
25 |
|
26 |
-
#
|
27 |
-
|
|
|
28 |
|
29 |
# Set the entry point to run the prediction script
|
30 |
ENTRYPOINT ["python", "predict.py"]
|
|
|
17 |
|
18 |
# Create needed directories with correct permissions
|
19 |
RUN mkdir /tmp/matplotlib
|
20 |
+
|
21 |
+
# Set the working directory
|
22 |
+
WORKDIR /src
|
23 |
|
24 |
# Copy the rest of the application code
|
25 |
COPY . /src
|
26 |
|
27 |
+
# Ensure fonts directory exists and create the cache
|
28 |
+
RUN mkdir -p /src/fonts && \
|
29 |
+
fc-cache -fv /src/fonts
|
30 |
|
31 |
# Set the entry point to run the prediction script
|
32 |
ENTRYPOINT ["python", "predict.py"]
|