Spaces:
Paused
Paused
Download Dockerfile from Speedofmastery/yyhh: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/spaces/Speedofmastery/yyhh/resolve/90633b1dbf0a580a318ff8284cb4ffd77268cbcf/Dockerfile
- Command line
-
hf download hf://spaces/Speedofmastery/yyhh@90633b1dbf0a580a318ff8284cb4ffd77268cbcf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Speedofmastery/yyhh/resolve/90633b1dbf0a580a318ff8284cb4ffd77268cbcf/Dockerfile
453 Bytes
| # HuggingFace optimized Dockerfile | |
| FROM python:3.9 | |
| # Create user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy and install requirements | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Copy application | |
| COPY --chown=user . /app | |
| # Run app | |
| CMD ["python", "app.py"] | |