diff --git a/deployment/docker/runner/Dockerfile b/deployment/docker/runner/Dockerfile index 8d617be2..bcd03d7f 100644 --- a/deployment/docker/runner/Dockerfile +++ b/deployment/docker/runner/Dockerfile @@ -53,9 +53,8 @@ USER 1001 # renovate: datasource=pypi depName=ansible ENV ANSIBLE_VERSION 9.4.0 -RUN mkdir /opt/semaphore/venv - -RUN python3 -m venv /opt/semaphore/venv --system-site-packages && \ +RUN mkdir /opt/semaphore/venv && \ + python3 -m venv /opt/semaphore/venv --system-site-packages && \ source /opt/semaphore/venv/bin/activate && \ pip3 install --upgrade pip ansible==${ANSIBLE_VERSION} boto3 botocore requests diff --git a/deployment/docker/runner/runner-wrapper b/deployment/docker/runner/runner-wrapper index fa9587a5..45c16e3b 100644 --- a/deployment/docker/runner/runner-wrapper +++ b/deployment/docker/runner/runner-wrapper @@ -18,7 +18,7 @@ fi if test -f "${SEMAPHORE_CONFIG_PATH}/requirements.txt"; then echoerr "Installing additional python dependencies" - pip3 install --upgrade --user \ + pip3 install --upgrade \ -r "${SEMAPHORE_CONFIG_PATH}/requirements.txt" else echoerr "No additional python dependencies to install" diff --git a/deployment/docker/server/Dockerfile b/deployment/docker/server/Dockerfile index ed535b34..9bdae616 100644 --- a/deployment/docker/server/Dockerfile +++ b/deployment/docker/server/Dockerfile @@ -53,9 +53,8 @@ USER 1001 # renovate: datasource=pypi depName=ansible ENV ANSIBLE_VERSION 9.4.0 -RUN mkdir /opt/semaphore/venv - -RUN python3 -m venv /opt/semaphore/venv --system-site-packages && \ +RUN mkdir /opt/semaphore/venv && \ + python3 -m venv /opt/semaphore/venv --system-site-packages && \ source /opt/semaphore/venv/bin/activate && \ pip3 install --upgrade pip ansible==${ANSIBLE_VERSION} boto3 botocore requests diff --git a/deployment/docker/server/server-wrapper b/deployment/docker/server/server-wrapper index e4f33ca2..65521d2a 100755 --- a/deployment/docker/server/server-wrapper +++ b/deployment/docker/server/server-wrapper @@ -190,7 +190,7 @@ fi if test -f "${SEMAPHORE_CONFIG_PATH}/requirements.txt"; then echoerr "Installing additional python dependencies" - pip3 install --upgrade --user \ + pip3 install --upgrade \ -r "${SEMAPHORE_CONFIG_PATH}/requirements.txt" else echoerr "No additional python dependencies to install"