Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -20,11 +20,12 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 20 |
# Copy the application files
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
-
#
|
| 24 |
-
EXPOSE
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
# Run Streamlit
|
| 27 |
-
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
| 28 |
# ##################################################################################################
|
| 29 |
# FROM python:3.9-slim
|
| 30 |
|
|
|
|
| 20 |
# Copy the application files
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
+
# Let Hugging Face choose the port
|
| 24 |
+
EXPOSE $PORT
|
| 25 |
+
|
| 26 |
+
# Run Streamlit using the port provided by Hugging Face
|
| 27 |
+
CMD ["sh", "-c", "streamlit run src/streamlit_app.py --server.port=$PORT --server.address=0.0.0.0"]
|
| 28 |
|
|
|
|
|
|
|
| 29 |
# ##################################################################################################
|
| 30 |
# FROM python:3.9-slim
|
| 31 |
|