Skip to content

Commit

Permalink
Create a venv
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 4, 2024
1 parent 79429e1 commit 9e6d966
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ RUN --mount=type=cache,target=/var/lib/apt/lists \
--mount=type=cache,target=/var/cache,sharing=locked \
apt-get update \
&& apt-get upgrade --assume-yes \
&& apt-get install --assume-yes --no-install-recommends python3-pip
&& apt-get install --assume-yes --no-install-recommends python3-pip python3-venv \
&& python3 -m venv /venv

ENV PATH=/venv/bin:$PATH

# Used to convert the locked packages by poetry to pip requirements format
# We don't directly use `poetry install` because it force to use a virtual environment.
Expand Down

0 comments on commit 9e6d966

Please sign in to comment.