Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
ENV PYTHONDONTWRITEBYTECODE
|
4 |
-
ENV PYTHONUNBUFFERED
|
5 |
-
|
6 |
WORKDIR /app
|
7 |
|
8 |
COPY requirements.txt /app/
|
@@ -10,10 +9,11 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
10 |
|
11 |
COPY . /app
|
12 |
|
13 |
-
# Fix Streamlit
|
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 |
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
ENV PYTHONDONTWRITEBYTECODE=1
|
4 |
+
ENV PYTHONUNBUFFERED=1
|
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
COPY requirements.txt /app/
|
|
|
9 |
|
10 |
COPY . /app
|
11 |
|
12 |
+
# Fix Streamlit + Matplotlib config errors in Hugging Face
|
13 |
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
|
14 |
+
ENV STREAMLIT_STATIC_DIR=/app/static
|
15 |
ENV MPLCONFIGDIR=/app/.config/matplotlib
|
16 |
+
RUN mkdir -p /app/.streamlit /app/static /app/.config/matplotlib
|
17 |
|
18 |
EXPOSE 7860
|
19 |
|