sinatayebati commited on
Commit
9f3687e
1 Parent(s): 010c4d8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,15 +1,15 @@
1
  # Base image
2
  FROM python:3.9
3
 
4
- # Set environment variables to avoid permission issues
5
- ENV MPLCONFIGDIR=/tmp/matplotlib_cache
6
- ENV FONTCONFIG_PATH=/tmp/fontconfig
7
 
8
- # Create directories and ensure writable permission
9
  RUN mkdir -p /tmp/matplotlib_cache /tmp/fontconfig && chmod -R 777 /tmp/matplotlib_cache /tmp/fontconfig
10
 
11
- # Set the working directory inside the container
12
- WORKDIR /code
 
13
 
14
  # Copy the dependencies file to the working directory
15
  COPY ./requirements.txt /code/requirements.txt
 
1
  # Base image
2
  FROM python:3.9
3
 
4
+ # Set the working directory inside the container
5
+ WORKDIR /code
 
6
 
7
+ # Create directories for Matplotlib and Fontconfig caches
8
  RUN mkdir -p /tmp/matplotlib_cache /tmp/fontconfig && chmod -R 777 /tmp/matplotlib_cache /tmp/fontconfig
9
 
10
+ # Set environment variables for caches
11
+ ENV MPLCONFIGDIR=/tmp/matplotlib_cache
12
+ ENV FONTCONFIG_PATH=/tmp/fontconfig
13
 
14
  # Copy the dependencies file to the working directory
15
  COPY ./requirements.txt /code/requirements.txt