Spaces:
Runtime error
Runtime error
Download Dockerfile from hareeshkumarkb/hareesh539: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/hareeshkumarkb/hareesh539/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/hareeshkumarkb/hareesh539/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hareeshkumarkb/hareesh539/resolve/main/Dockerfile
428 Bytes
| # Use a minimal base image with Python | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY . . | |
| # Expose the port the app runs on | |
| EXPOSE 5000 | |
| # Command to run the application using Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"] | |