Skip to content

Commit

Permalink
Don't copy the whole source tree into the final image, it already has…
Browse files Browse the repository at this point in the history
… the built prez module and all dependencies installed in the venv, it just needs main.py and supporting files.
  • Loading branch information
ashleysommer committed Apr 21, 2024
1 parent f4db569 commit 70fcb45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ RUN apk update && \
bash

WORKDIR /app
COPY . .
# prez module is already built as a package and installed in $VIRTUAL_ENV as a library
COPY main.py pyproject.toml ./

ENTRYPOINT uvicorn prez.app:app --host=${HOST:-0.0.0.0} --port=${PORT:-8000} --proxy-headers

0 comments on commit 70fcb45

Please sign in to comment.