# HG changeset patch # User Laurent Peuch <cortex@worlddomination.be> # Date 1702012032 -3600 # Fri Dec 08 06:07:12 2023 +0100 # Node ID 6867af369cf4d7337ed6692ad4032c0a993b440f # Parent 7e2eddb6e49fae8be99b3b66907bd0b448de8bd8 fix(cube-doctor-scheduled-jobs): port image to new way of using virtualenv diff --git a/library/cube-doctor-scheduled-jobs/Dockerfile b/library/cube-doctor-scheduled-jobs/Dockerfile --- a/library/cube-doctor-scheduled-jobs/Dockerfile +++ b/library/cube-doctor-scheduled-jobs/Dockerfile @@ -3,4 +3,9 @@ COPY hgrc /root/.hgrc RUN apt-get update -RUN apt-get install python3-pip mercurial mercurial-evolve -y +RUN apt-get install python3-pip mercurial mercurial-evolve python3-venv -y + +ENV VIRTUAL_ENV=/opt/venv +RUN python3 -m venv $VIRTUAL_ENV +# always activate the virtualenv in every "RUN " docker command +ENV PATH="$VIRTUAL_ENV/bin:$PATH"