Download Dockerfile from viveksardey/PneumoniaDetectionPredictionBackend: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/viveksardey/PneumoniaDetectionPredictionBackend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/viveksardey/PneumoniaDetectionPredictionBackend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/viveksardey/PneumoniaDetectionPredictionBackend/resolve/main/Dockerfile
401 Bytes
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first (better Docker caching) | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy project files | |
| COPY . . | |
| # Expose port required by Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Start API with Gunicorn | |
| CMD ["gunicorn","-w","1","-b","0.0.0.0:7860","app:pneumonia_detector_api"] | |