mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix: reduce docker layer and remove user flag from pip install
This commit is contained in:
parent
80e2c8ed16
commit
bad8c6ab4a
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user