This commit is contained in:
Chris Milne 2026-05-06 12:02:26 +01:00
commit ac39206625
58 changed files with 1814 additions and 0 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM python:3.13-slim AS build-env
COPY . /app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install "psycopg[binary,pool]"
FROM gcr.io/distroless/python3-debian13
COPY --from=build-env /usr/local/lib /usr/local/lib
COPY --from=build-env /usr/local/bin /usr/local/bin
COPY --from=build-env /app /app
EXPOSE 8000
ENV PYTHONPATH=/usr/local/lib/python3.13/site-packages
WORKDIR /app
CMD ["/usr/local/bin/uvicorn", "src.main:app", "--host", "0.0.0.0"]