Add psycopg2 dependency for prod

This commit is contained in:
Jack Jackson 2024-06-24 21:14:08 -07:00
parent 3183b56075
commit e75f23e3d9
2 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,12 @@ EXPOSE 8000
FROM base AS prod
USER root
RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,source=requirements-prod-only.txt,target=requirements-prod-only.txt \
python -m pip install -r requirements-prod-only.txt
USER appuser
COPY . .
CMD uvicorn app:app --host 0.0.0.0

View File

@ -0,0 +1 @@
psycopg2-binary