Spaces:
Sleeping
Sleeping
Download Dockerfile from gabfootlive/app: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/gabfootlive/app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gabfootlive/app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gabfootlive/app/resolve/main/Dockerfile
432 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt ./ | |
| RUN python -m pip install --upgrade pip && \ | |
| python -m pip install -r requirements.txt | |
| COPY --chown=user . . | |
| EXPOSE 7860 | |
| CMD ["python", "web_app.py"] | |