Download Dockerfile from qa1145/astrbbbb: direct link, hf CLI and curl.
- Browser
- Download file 730 Bytes
-
https://huggingface.co/spaces/qa1145/astrbbbb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/qa1145/astrbbbb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/qa1145/astrbbbb/resolve/main/Dockerfile
730 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV UV_SYSTEM=1 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| build-essential \ | |
| python3-dev \ | |
| libffi-dev \ | |
| libssl-dev \ | |
| ca-certificates \ | |
| bash \ | |
| ffmpeg \ | |
| curl \ | |
| gnupg \ | |
| git \ | |
| && curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ | |
| && apt-get install -y --no-install-recommends nodejs \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| COPY . /app/ | |
| RUN python -m pip install uv && \ | |
| uv lock && \ | |
| uv sync && \ | |
| uv pip install socksio uv pilk --no-cache-dir --system | |
| EXPOSE 7860 7860 | |
| CMD ["uv", "run", "main.py"] | |