Download dockerfile from Waniss/Project: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/spaces/Waniss/Project/resolve/main/dockerfile
- Command line
-
hf download hf://spaces/Waniss/Project/dockerfile
-
curl -L -o dockerfile https://huggingface.co/spaces/Waniss/Project/resolve/main/dockerfile
534 Bytes
| # Use Python image | |
| FROM python:3.9 | |
| # Set the working directory inside the container | |
| WORKDIR /code | |
| # Copy the requirements file from the root | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy all files and folders (including 'pages' and 'assets') | |
| COPY . /code | |
| # Start the app using Gunicorn on port 7860 | |
| # This assumes your main file is 'app.py' and it contains 'server = app.server' | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:server"] |