Spaces:
Sleeping
Sleeping
Download Dockerfile from vamshf/Docker-project: direct link, hf CLI and curl.
- Browser
- Download file 674 Bytes
-
https://huggingface.co/spaces/vamshf/Docker-project/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vamshf/Docker-project/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vamshf/Docker-project/resolve/main/Dockerfile
674 Bytes
| # Use a minimal base image with Python 3.9 installed | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container to /app | |
| WORKDIR /app | |
| RUN pip install gunicorn | |
| # Copy the requirements file and install dependencies first to leverage Docker cache | |
| COPY requirements.txt . | |
| COPY superKart_Sales_forecast.py . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application files | |
| COPY . . | |
| # Command to run the Flask application using Gunicorn | |
| # Gunicorn is a production-ready WSGI server | |
| # You can adjust the number of workers and threads based on your needs | |
| CMD ["gunicorn", "-w", "4", "--bind", "0.0.0.0:7860", "app:superKart_Sales_forecast"] | |