Download Dockerfile from AnuSubash/pneumoniadetectionmodelbackend: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/AnuSubash/pneumoniadetectionmodelbackend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AnuSubash/pneumoniadetectionmodelbackend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AnuSubash/pneumoniadetectionmodelbackend/resolve/main/Dockerfile
336 Bytes
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy project files | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Expose port used by Hugging Face spaces (optional but recommended) | |
| EXPOSE 7860 | |
| # Run app using python (Gradio serves automatically) | |
| CMD ["python", "app.py"] | |