Add psycopg2 dependency for prod
This commit is contained in:
parent
3183b56075
commit
e75f23e3d9
@ -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
|
||||
|
||||
|
1
requirements-prod-only.txt
Normal file
1
requirements-prod-only.txt
Normal file
@ -0,0 +1 @@
|
||||
psycopg2-binary
|
Loading…
x
Reference in New Issue
Block a user