Files
tgex-backend/Dockerfile
T
root a33fa24e99
Build & Push / build (push) Canceled after 0s
Initial commit
2026-08-05 19:31:35 +03:00

20 lines
395 B
Docker

FROM python:3.13-slim-bookworm
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen
COPY src ./src
COPY shared ./shared
COPY migrations ./migrations
ENV PYTHONPATH=/shared:/src
ARG GIT_COMMIT=unknown
ENV GIT_COMMIT=${GIT_COMMIT}
EXPOSE 8000
CMD [".venv/bin/uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000"]