Spaces:
Sleeping
Sleeping
Commit ·
d58d3c6
1
Parent(s): c4478d6
corrected dockerfile for smooth deployment
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
|
@@ -9,12 +9,15 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
COPY requirements.txt ./
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
EXPOSE 8501
|
| 17 |
|
| 18 |
-
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 19 |
|
| 20 |
-
ENTRYPOINT ["streamlit", "run", "
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
COPY requirements.txt ./
|
| 12 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
COPY . .
|
| 15 |
+
|
| 16 |
+
# Force Streamlit to use /app/.streamlit for configs
|
| 17 |
+
ENV XDG_CONFIG_HOME=/app/.streamlit
|
| 18 |
|
| 19 |
EXPOSE 8501
|
| 20 |
|
| 21 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 22 |
|
| 23 |
+
ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"]
|