Skip to content

Commit

Permalink
Use arg/env variable for venv creation instead of hardcoded location
Browse files Browse the repository at this point in the history
Explicitly call the venv version of pip3 to install the wheel, so it is obvious the built prez module is being installed in the venv site_packages.
  • Loading branch information
ashleysommer committed Apr 21, 2024
1 parent 7a7f028 commit f4db569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ WORKDIR /app
COPY . .

RUN poetry build
RUN python -m venv --system-site-packages /opt/venv
RUN pip install --no-cache-dir dist/*.whl
RUN python3 -m venv --system-site-packages ${VIRTUAL_ENV}
RUN ${VIRTUAL_ENV}/bin/pip3 install --no-cache-dir dist/*.whl

#
# Final
Expand Down

0 comments on commit f4db569

Please sign in to comment.