Juna190825 commited on
Commit
e651a3a
·
verified ·
1 Parent(s): 2507fb7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -2,8 +2,13 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
5
  COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
 
 
7
 
8
  COPY . .
9
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Set matplotlib config directory to a writable location
6
+ ENV MPLCONFIGDIR=/tmp/matplotlib
7
+
8
  COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt && \
10
+ mkdir -p /tmp/matplotlib && \
11
+ chmod -R 777 /tmp/matplotlib
12
 
13
  COPY . .
14