Download Dockerfile from duqing26/code-snapshot-studio: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/spaces/duqing26/code-snapshot-studio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/duqing26/code-snapshot-studio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/duqing26/code-snapshot-studio/resolve/main/Dockerfile
320 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Create a non-root user for Hugging Face Spaces | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |