imCuteCat commited on
Commit
2800759
1 Parent(s): a959715

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- RUN mkdir /src/fonts && \
21
- fc-cache -fv /src/fonts
 
22
 
23
  # Copy the rest of the application code
24
  COPY . /src
25
 
26
- # Set the working directory
27
- WORKDIR /src
 
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"]