Spaces:
Sleeping
Sleeping
Download Dockerfile from alonsosilva/CustomizedStreamBot: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/alonsosilva/CustomizedStreamBot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/alonsosilva/CustomizedStreamBot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/alonsosilva/CustomizedStreamBot/resolve/main/Dockerfile
455 Bytes
| FROM python:3.12 | |
| COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv | |
| # Set up a new user named "user" with user ID 1000 | |
| RUN useradd -m -u 1000 user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| ENV UV_SYSTEM_PYTHON=1 | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN uv pip install -r requirements.txt | |
| COPY --chown=user . /app | |
| # Switch to the "user" user | |
| USER user | |
| CMD ["solara", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"] | |