Download Dockerfile from Speedofmastery/yyuu: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/Speedofmastery/yyuu/resolve/main/Dockerfile
- Command line
-
hf download hf://Speedofmastery/yyuu/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/Speedofmastery/yyuu/resolve/main/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"] | |