Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -13,8 +13,11 @@ COPY src/ ./src/
|
|
| 13 |
|
| 14 |
RUN pip3 install -r requirements.txt
|
| 15 |
|
| 16 |
-
EXPOSE
|
|
|
|
| 17 |
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
| 13 |
|
| 14 |
RUN pip3 install -r requirements.txt
|
| 15 |
|
| 16 |
+
# Change EXPOSE to 7860
|
| 17 |
+
EXPOSE 7860
|
| 18 |
|
| 19 |
+
# Update HEALTHCHECK to use 7860
|
| 20 |
+
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
| 21 |
|
| 22 |
+
# Add the XSRF and CORS disable flags to ENTRYPOINT
|
| 23 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
|