Spaces:
Running
Running
Download Dockerfile from lerobot/annotation-studio: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/lerobot/annotation-studio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lerobot/annotation-studio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lerobot/annotation-studio/resolve/main/Dockerfile
579 Bytes
| FROM oven/bun:1.3.10 AS frontend | |
| WORKDIR /build | |
| COPY frontend/package.json frontend/bun.lock ./ | |
| RUN bun install --frozen-lockfile | |
| COPY frontend/ ./ | |
| RUN bun run build | |
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user . . | |
| COPY --from=frontend --chown=user:user /build/dist /app/frontend/dist | |
| USER user | |
| ENV HOME=/home/user PYTHONUNBUFFERED=1 HF_HUB_DISABLE_TELEMETRY=1 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--no-access-log"] | |