Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -8,6 +8,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 8 |
software-properties-common \
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
COPY requirements.txt ./
|
| 13 |
COPY src/ ./src/
|
|
@@ -16,6 +20,6 @@ RUN pip3 install -r requirements.txt
|
|
| 16 |
|
| 17 |
EXPOSE 8501
|
| 18 |
|
| 19 |
-
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 20 |
|
| 21 |
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0" , "--server.enableXsrfProtection=false"]
|
|
|
|
| 8 |
software-properties-common \
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
# Increase pip timeout globally via pip.conf
|
| 13 |
+
RUN mkdir -p /etc/pip && \
|
| 14 |
+
echo "[global]\ntimeout = 100" > /etc/pip/pip.conf
|
| 15 |
|
| 16 |
COPY requirements.txt ./
|
| 17 |
COPY src/ ./src/
|
|
|
|
| 20 |
|
| 21 |
EXPOSE 8501
|
| 22 |
|
| 23 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 24 |
|
| 25 |
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0" , "--server.enableXsrfProtection=false"]
|