Spaces:
Sleeping
Sleeping
Download Dockerfile from ByteRiot/CandidateExplorer: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/spaces/ByteRiot/CandidateExplorer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ByteRiot/CandidateExplorer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ByteRiot/CandidateExplorer/resolve/main/Dockerfile
591 Bytes
| FROM python:3.13-slim-bookworm | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 \ | |
| UV_COMPILE_BYTECODE=1 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libpq-dev \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN addgroup --system app && \ | |
| adduser --system --group --home /home/app app | |
| COPY pyproject.toml uv.lock ./ | |
| RUN uv sync --frozen | |
| COPY . . | |
| RUN chown -R app:app /app | |
| USER app | |
| EXPOSE 7860 | |
| CMD ["uv", "run", "--no-sync", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |