Download Dockerfile from D-Jaden02/Testing01: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/spaces/D-Jaden02/Testing01/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/D-Jaden02/Testing01/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/D-Jaden02/Testing01/resolve/main/Dockerfile
408 Bytes
| FROM python:3.10-slim | |
| # HF Spaces requires user 1000 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user app.py . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |