File tree 4 files changed +14
-12
lines changed
4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ RUN apk add --no-cache -U \
36
36
chown -R semaphore:0 /tmp/semaphore && \
37
37
chown -R semaphore:0 /etc/semaphore && \
38
38
chown -R semaphore:0 /var/lib/semaphore && \
39
- chown -R semaphore:0 /opt/semaphore
39
+ chown -R semaphore:0 /opt/semaphore && \
40
+ find /usr/lib/python* -iname __pycache__ | xargs rm -rf
40
41
41
42
COPY --chown=1001:0 ./deployment/docker/runner/ansible.cfg /tmp/semaphore/ansible.cfg
42
43
COPY --from=builder /go/src/semaphore/deployment/docker/runner/runner-wrapper /usr/local/bin/
@@ -53,11 +54,11 @@ USER 1001
53
54
# renovate: datasource=pypi depName=ansible
54
55
ENV ANSIBLE_VERSION 9.4.0
55
56
56
- RUN mkdir /opt/semaphore/venv
57
-
58
- RUN python3 -m venv /opt/semaphore/venv --system-site-packages && \
57
+ RUN mkdir /opt/semaphore/venv && \
58
+ python3 -m venv /opt/semaphore/venv --system-site-packages && \
59
59
source /opt/semaphore/venv/bin/activate && \
60
- pip3 install --upgrade pip ansible==${ANSIBLE_VERSION} boto3 botocore requests
60
+ pip3 install --upgrade pip ansible==${ANSIBLE_VERSION} boto3 botocore requests && \
61
+ find /opt/semaphore/venv -iname __pycache__ | xargs rm -rf
61
62
62
63
# Preventing ansible zombie processes. Tini kills zombies.
63
64
ENTRYPOINT ["/sbin/tini" , "--" ]
Original file line number Diff line number Diff line change 18
18
19
19
if test -f " ${SEMAPHORE_CONFIG_PATH} /requirements.txt" ; then
20
20
echoerr " Installing additional python dependencies"
21
- pip3 install --upgrade --user \
21
+ pip3 install --upgrade \
22
22
-r " ${SEMAPHORE_CONFIG_PATH} /requirements.txt"
23
23
else
24
24
echoerr " No additional python dependencies to install"
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ bash curl git gnupg mysql-client openssh-client-default python3 python3-dev py3-
36
36
chown -R semaphore:0 /tmp/semaphore && \
37
37
chown -R semaphore:0 /etc/semaphore && \
38
38
chown -R semaphore:0 /var/lib/semaphore && \
39
- chown -R semaphore:0 /opt/semaphore
39
+ chown -R semaphore:0 /opt/semaphore && \
40
+ find /usr/lib/python* -iname __pycache__ | xargs rm -rf
40
41
41
42
COPY --chown=1001:0 ./deployment/docker/server/ansible.cfg /tmp/semaphore/ansible.cfg
42
43
COPY --from=builder /go/src/semaphore/deployment/docker/server/server-wrapper /usr/local/bin/
@@ -53,11 +54,11 @@ USER 1001
53
54
# renovate: datasource=pypi depName=ansible
54
55
ENV ANSIBLE_VERSION 9.4.0
55
56
56
- RUN mkdir /opt/semaphore/venv
57
-
58
- RUN python3 -m venv /opt/semaphore/venv --system-site-packages && \
57
+ RUN mkdir /opt/semaphore/venv && \
58
+ python3 -m venv /opt/semaphore/venv --system-site-packages && \
59
59
source /opt/semaphore/venv/bin/activate && \
60
- pip3 install --upgrade pip ansible==${ANSIBLE_VERSION} boto3 botocore requests
60
+ pip3 install --upgrade pip ansible==${ANSIBLE_VERSION} boto3 botocore requests && \
61
+ find /opt/semaphore/venv -iname __pycache__ | xargs rm -rf
61
62
62
63
# Preventing ansible zombie processes. Tini kills zombies.
63
64
ENTRYPOINT ["/sbin/tini" , "--" ]
Original file line number Diff line number Diff line change 190
190
191
191
if test -f " ${SEMAPHORE_CONFIG_PATH} /requirements.txt" ; then
192
192
echoerr " Installing additional python dependencies"
193
- pip3 install --upgrade --user \
193
+ pip3 install --upgrade \
194
194
-r " ${SEMAPHORE_CONFIG_PATH} /requirements.txt"
195
195
else
196
196
echoerr " No additional python dependencies to install"
You can’t perform that action at this time.
0 commit comments