Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -4,6 +4,10 @@ FROM python:3.10-slim
|
|
| 4 |
|
| 5 |
# Set environment variables
|
| 6 |
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
# Install system dependencies and git
|
|
@@ -39,4 +43,4 @@ EXPOSE 8501
|
|
| 39 |
|
| 40 |
|
| 41 |
# Command to run the application
|
| 42 |
-
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 4 |
|
| 5 |
# Set environment variables
|
| 6 |
ENV PYTHONUNBUFFERED 1
|
| 7 |
+
ENV STREAMLIT_SERVER_HEADLESS true
|
| 8 |
+
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS false
|
| 9 |
+
ENV STREAMLIT_SERVER_ENABLE_CORS false
|
| 10 |
+
ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION false
|
| 11 |
|
| 12 |
|
| 13 |
# Install system dependencies and git
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
# Command to run the application
|
| 46 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
|