Download Dockerfile from ScottIzi/GreatLearningDeploymentProject: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/ScottIzi/GreatLearningDeploymentProject/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ScottIzi/GreatLearningDeploymentProject/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ScottIzi/GreatLearningDeploymentProject/resolve/main/Dockerfile
335 Bytes
| FROM python:3.12-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy all files from current directory to container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Run Flask app with Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:superkart_api"] | |