Spaces:
Running
Running
Update Dockerfile
Browse files- 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"]
|