fiewolf1000 commited on
Commit
daadd27
·
verified ·
1 Parent(s): 5fdc890

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -1,5 +1,9 @@
1
  FROM python:3.9-slim
2
  WORKDIR /app
3
  COPY . .
 
 
 
 
4
  RUN pip install --no-cache-dir -r requirements.txt
5
  CMD ["python", "app.py"]
 
1
  FROM python:3.9-slim
2
  WORKDIR /app
3
  COPY . .
4
+
5
+ # 设置 matplotlib 配置目录到/tmp(可写目录)
6
+ ENV MPLCONFIGDIR=/tmp/matplotlib_config
7
+
8
  RUN pip install --no-cache-dir -r requirements.txt
9
  CMD ["python", "app.py"]