Spaces:
Sleeping
Sleeping
Download Dockerfile from RoopaST/Sales-Prediction-Backend-1: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/spaces/RoopaST/Sales-Prediction-Backend-1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RoopaST/Sales-Prediction-Backend-1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RoopaST/Sales-Prediction-Backend-1/resolve/main/Dockerfile
605 Bytes
| # Use a lightweight Python base image | |
| FROM python:3.9-slim-buster | |
| ## Set the working directory inside the container to /app | |
| WORKDIR /app | |
| # Copy all files from the current directory on the host to the container's /app directory | |
| COPY . . | |
| # Install Python dependencies listed in requirements.txt | |
| RUN pip3 install --no-cache-dir --upgrade -r requirements.txt | |
| # Expose the port that the Flask app will run on | |
| EXPOSE 7860 | |
| # Define the command to run the Flask application using gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--log-file", "-", "--access-logfile", "-", "app:predict_sales_api"] | |