Spaces:
Running
Running
Download Dockerfile from HuggingFaceSwarms/PyBot: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/HuggingFaceSwarms/PyBot/resolve/f2bbd92ec1870ba43f17e005bf02ff20e4a62969/Dockerfile
- Command line
-
hf download hf://spaces/HuggingFaceSwarms/PyBot@f2bbd92ec1870ba43f17e005bf02ff20e4a62969/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HuggingFaceSwarms/PyBot/resolve/f2bbd92ec1870ba43f17e005bf02ff20e4a62969/Dockerfile
415 Bytes
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| WORKDIR /home/user/app | |
| ENV PATH="/home/user/.local/bin:$PATH" PYTHONUNBUFFERED=1 | |
| COPY --chown=user requirements.txt ./ | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user app.py bot_runner.py ./ | |
| COPY --chown=user bot ./bot | |
| COPY --chown=user site ./site | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |