Spaces:
Sleeping
Sleeping
Download Dockerfile from HarishMaths/Backend: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/spaces/HarishMaths/Backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HarishMaths/Backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HarishMaths/Backend/resolve/main/Dockerfile
383 Bytes
| # Use official Python base image | |
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy the current directory contents into the container | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --upgrade pip \ | |
| && pip install flask | |
| # Expose the port Flask runs on | |
| EXPOSE 7860 | |
| # Start the Flask app | |
| CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"] | |