Spaces:
Sleeping
Sleeping
Download Dockerfile from austinsd/helloworld: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/austinsd/helloworld/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/austinsd/helloworld/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/austinsd/helloworld/resolve/main/Dockerfile
433 Bytes
| # Use Python 3.9 as the base image | |
| FROM python:3.9 | |
| # Set the working directory in the container | |
| WORKDIR /code | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Expose port 7860 (Hugging Face default) | |
| EXPOSE 7860 | |
| # Run the application using Gunicorn | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] |