Download Dockerfile from Oth1/oth: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/Oth1/oth/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Oth1/oth/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Oth1/oth/resolve/main/Dockerfile
413 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=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/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| COPY --chown=user main.py . | |
| EXPOSE 7860 | |
| CMD ["python", "main.py"] | |