Download Dockerfile from ScottIzi/GreatLearningSuperkartProjectDeployWithStreamlit: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/ScottIzi/GreatLearningSuperkartProjectDeployWithStreamlit/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ScottIzi/GreatLearningSuperkartProjectDeployWithStreamlit/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ScottIzi/GreatLearningSuperkartProjectDeployWithStreamlit/resolve/main/Dockerfile
449 Bytes
| # Use a lightweight Python image | |
| FROM python:3.12-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy project files | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose Hugging Face expected port | |
| EXPOSE 7860 | |
| # Start Streamlit server on Hugging Face port | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] | |