Skip to content

Commit

Permalink
chore: Update Dockerfile to include project installation in final image
Browse files Browse the repository at this point in the history
  • Loading branch information
derkweijers committed Jul 1, 2024
1 parent 78ac827 commit eb83bbc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ LABEL org.opencontainers.image.source=https://github.com/TheSpaceDevs/spacefligh
COPY --chown=${APP_USER}:${APP_USER} --from=base ${APP_HOME} ${APP_HOME}
ADD --chown=${APP_USER}:${APP_USER} . ${APP_HOME}

# Install the project again, to install the project in the final image (and have the version available)
RUN poetry install --no-interaction

ENV PATH="${APP_HOME}/.venv/bin:$PATH"


USER ${APP_USER}
EXPOSE 8000

0 comments on commit eb83bbc

Please sign in to comment.