imCuteCat commited on
Commit
1029255
1 Parent(s): da53346

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # 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"]
 
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"]