CoolFace
Apppublic

ByteRiot/CandidateExplorer

sourceHugging Faceupdated 7mo agoView on Hugging Face
1likes
Dockerfile30 linesDownload Raw Back to root
1FROM python:3.13-slim-bookworm2 3COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/4 5WORKDIR /app6 7ENV PYTHONUNBUFFERED=1 \8    UV_COMPILE_BYTECODE=19 10RUN apt-get update && apt-get install -y --no-install-recommends \11    build-essential \12    libpq-dev \13    gcc \14    && rm -rf /var/lib/apt/lists/*15 16RUN addgroup --system app && \17    adduser --system --group --home /home/app app18 19COPY pyproject.toml uv.lock ./20RUN uv sync --frozen21 22COPY . .23 24RUN chown -R app:app /app25 26USER app27 28EXPOSE 786029 30CMD ["uv", "run", "--no-sync", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]