Spaces:
Running
Running
Download dockerfile from RCaz/Avatar_bot: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/RCaz/Avatar_bot/resolve/refs%2Fpr%2F13/dockerfile
- Command line
-
hf download hf://spaces/RCaz/Avatar_bot@refs/pr/13/dockerfile
-
curl -L -o dockerfile https://huggingface.co/spaces/RCaz/Avatar_bot/resolve/refs%2Fpr%2F13/dockerfile
539 Bytes
| FROM python:3.12-slim AS builder | |
| # mimick container built for gradio | |
| RUN apt-get update && apt-get install -y \ | |
| git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 curl \ | |
| && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | |
| && apt-get install -y nodejs \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # install without gpu | |
| RUN pip install --no-cache-dir -U pip | |
| COPY requirements.txt . | |
| RUN --mount=type=cache,target=/root/.cache/pip \ | |
| pip install --no-cache-dir -r requirements.txt | |
| CMD ["python", "app.py"] |