Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -11,8 +11,8 @@ COPY . .
|
|
| 11 |
RUN pip3 install -r requirements.txt
|
| 12 |
|
| 13 |
# Define the command to run the Streamlit app on port 8501 and make it accessible externally
|
| 14 |
-
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
| 15 |
-
|
| 16 |
-
|
| 17 |
|
| 18 |
# NOTE: Disable XSRF protection for easier external access in order to make batch predictions
|
|
|
|
| 11 |
RUN pip3 install -r requirements.txt
|
| 12 |
|
| 13 |
# Define the command to run the Streamlit app on port 8501 and make it accessible externally
|
| 14 |
+
# CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
| 15 |
+
EXPOSE 8501
|
| 16 |
+
CMD ["bash", "-lc", "streamlit run app.py --server.address 0.0.0.0 --server.port ${PORT:-8501} --server.enableXsrfProtection=false"]
|
| 17 |
|
| 18 |
# NOTE: Disable XSRF protection for easier external access in order to make batch predictions
|