Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -10,6 +10,11 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
10 |
|
11 |
COPY . /app
|
12 |
|
|
|
|
|
|
|
|
|
|
|
13 |
EXPOSE 7860
|
14 |
|
15 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
10 |
|
11 |
COPY . /app
|
12 |
|
13 |
+
# Fix Streamlit and Matplotlib permission issues
|
14 |
+
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
|
15 |
+
ENV MPLCONFIGDIR=/app/.config/matplotlib
|
16 |
+
RUN mkdir -p /app/.streamlit /app/.config/matplotlib
|
17 |
+
|
18 |
EXPOSE 7860
|
19 |
|
20 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|