Spaces:
No application file
No application file
Download Dockerfile from Lokiiparihar/Sample: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/spaces/Lokiiparihar/Sample/resolve/refs%2Fpr%2F1/Dockerfile
- Command line
-
hf download hf://spaces/Lokiiparihar/Sample@refs/pr/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Lokiiparihar/Sample/resolve/refs%2Fpr%2F1/Dockerfile
667 Bytes
| FROM python:3.11.7-slim | |
| # 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 | |
| RUN pip3 install -r requirements.txt | |
| #Define the command to run the Flask application on port 7860 and make it accessible externally | |
| # - '-w 4' : Uses 4 worker processes to handle requests. | |
| # - '-b 0.0.0.0:7860': Binds the Flask app to the specified host and port. | |
| # - 'app:sales_prediction_api': Specifies the entry point of the Flask app. | |
| CMD ["gunicorn", "w", "4", "-b", "0.0.0.0:7860" "app:sales_prediction_api"] | |