Spaces:
Sleeping
Sleeping
Download Dockerfile from LuckRafly/Stroke_Prediction: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/LuckRafly/Stroke_Prediction/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LuckRafly/Stroke_Prediction/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LuckRafly/Stroke_Prediction/resolve/main/Dockerfile
486 Bytes
| # Use a slim Python image as the base | |
| FROM python:3.11-slim | |
| # Set the working directory to /app | |
| WORKDIR /app | |
| # Copy only the necessary files to the container | |
| COPY app.py requirements.txt ./ | |
| COPY src ./src | |
| COPY artifacts ./artifacts | |
| COPY templates ./templates | |
| # Install packages and clean up | |
| RUN pip install -r requirements.txt && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| # Run your Flask app with Gunicorn | |
| CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]] |