Spaces:
Paused
Paused
Download Dockerfile from asach/gptpod-api: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/spaces/asach/gptpod-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/asach/gptpod-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/asach/gptpod-api/resolve/main/Dockerfile
548 Bytes
| # Use the official Python base image | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy the requirements file to the working directory | |
| COPY requirements.txt . | |
| # Install the required packages | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the Flask app code to the working directory | |
| COPY app.py . | |
| # Expose the port on which the app will run | |
| EXPOSE 5000 | |
| # Set the environment variable for Flask | |
| ENV FLASK_APP=app.py | |
| # Run the Flask app | |
| CMD ["flask", "run", "--host=0.0.0.0", "--port", "7860"] | |