Spaces:
Sleeping
Sleeping
Download Dockerfile from Radiotomy/base-stage-ready: direct link, hf CLI and curl.
- Browser
- Download file 586 Bytes
-
https://huggingface.co/spaces/Radiotomy/base-stage-ready/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Radiotomy/base-stage-ready/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Radiotomy/base-stage-ready/resolve/main/Dockerfile
586 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| wget xz-utils libxi6 libxxf86vm1 libxfixes3 libxrender1 libgl1 libegl1 \ | |
| libxkbcommon0 libgomp1 libsm6 libice6 libx11-6 libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH | |
| WORKDIR /home/user/app | |
| RUN pip install --no-cache-dir fastapi==0.115.0 uvicorn==0.30.6 httpx==0.27.2 bpy==4.2.0 | |
| COPY --chown=user . /home/user/app | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |