Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -11,10 +11,14 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
COPY requirements.txt ./
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
|
|
|
|
| 15 |
|
|
|
|
| 16 |
COPY src/ ./src/
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
CMD ["bash", "-lc", "streamlit run app.py --server.address=0.0.0.0 --server.port=${PORT:-
|
|
|
|
| 11 |
COPY requirements.txt ./
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# Copy entrypoint to repo root
|
| 15 |
+
COPY app.py ./app.py
|
| 16 |
|
| 17 |
+
# Copy any supporting modules
|
| 18 |
COPY src/ ./src/
|
| 19 |
|
| 20 |
+
# HuggingFace Docker Spaces routes traffic to the port specified in README metadata (app_port).
|
| 21 |
+
# Keep this aligned with README app_port: 8501
|
| 22 |
+
EXPOSE 8501
|
| 23 |
|
| 24 |
+
CMD ["bash", "-lc", "streamlit run app.py --server.address=0.0.0.0 --server.port=${PORT:-8501} --server.headless=true --server.enableCORS=false --server.enableXsrfProtection=false"]
|