File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
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/
@@ -56,7 +57,8 @@ ENV ANSIBLE_VERSION 9.4.0
56
57
RUN mkdir /opt/semaphore/venv && \
57
58
python3 -m venv /opt/semaphore/venv --system-site-packages && \
58
59
source /opt/semaphore/venv/bin/activate && \
59
- 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
60
62
61
63
# Preventing ansible zombie processes. Tini kills zombies.
62
64
ENTRYPOINT ["/sbin/tini" , "--" ]
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/
@@ -56,7 +57,8 @@ ENV ANSIBLE_VERSION 9.4.0
56
57
RUN mkdir /opt/semaphore/venv && \
57
58
python3 -m venv /opt/semaphore/venv --system-site-packages && \
58
59
source /opt/semaphore/venv/bin/activate && \
59
- 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
60
62
61
63
# Preventing ansible zombie processes. Tini kills zombies.
62
64
ENTRYPOINT ["/sbin/tini" , "--" ]
You can’t perform that action at this time.
0 commit comments