Spaces:
Sleeping
Sleeping
Download Dockerfile from Jing997/DeliveryRouteOptimisation: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/Jing997/DeliveryRouteOptimisation/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Jing997/DeliveryRouteOptimisation/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Jing997/DeliveryRouteOptimisation/resolve/main/Dockerfile
423 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY . . | |
| # Set default port and expose it (Spaces default is 7860) | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Command to run the application on the assigned port | |
| CMD ["bash", "-c", "streamlit run app.py --server.address=0.0.0.0 --server.port=${PORT}"] |