Skip to content

Commit

Permalink
Use a venv
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 8, 2024
1 parent 78ffe5c commit bccb4f7
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 @@ -5,7 +5,10 @@ SHELL ["/bin/bash", "-o", "pipefail", "-cux"]
RUN --mount=type=cache,target=/var/lib/apt/lists --mount=type=cache,target=/var/cache \
sed -i '/-backports /d' /etc/apt/sources.list \
&& apt-get update \
&& apt-get install --yes --no-install-recommends python3-pip binutils
&& apt-get install --yes --no-install-recommends binutils 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 bccb4f7

Please sign in to comment.