Download Dockerfile from Parthipan00410/SalesPredictionFrontend: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/Parthipan00410/SalesPredictionFrontend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Parthipan00410/SalesPredictionFrontend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Parthipan00410/SalesPredictionFrontend/resolve/main/Dockerfile
365 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY . /app | |
| # Install just the frontend deps | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Hugging Face Docker Spaces expect port 7860 | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| # Start Streamlit on 0.0.0.0:7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"] | |