fix: fixing mising pip PATH (#585)

* fix: fixing mising pip PATH

* chore: removing User Site Directory

Co-authored-by: Callum James Tait <callum.tait@photobox.com>
This commit is contained in:
toast-gear
2021-06-01 01:21:14 +01:00
committed by GitHub
parent 198b13324d
commit 2e083bca28
3 changed files with 12 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ RUN set -vx; \
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
ENV RUNNER_ASSETS_DIR=/runnertmp
ENV HOME=/home/runner
# Runner download supports amd64 as x64. Externalstmp is needed for making mount points work inside DinD.
#
@@ -88,6 +89,9 @@ RUN echo AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache > .env \
COPY entrypoint.sh /
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
# Add the Python "User Script Directory" to the PATH
ENV PATH="${PATH}:${HOME}/.local/bin"
USER runner
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD ["/entrypoint.sh"]

View File

@@ -73,6 +73,7 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
docker --version
ENV RUNNER_ASSETS_DIR=/runnertmp
ENV HOME=/home/runner
# Runner download supports amd64 as x64
#
@@ -110,6 +111,9 @@ VOLUME /var/lib/docker
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
# Add the Python "User Script Directory" to the PATH
ENV PATH="${PATH}:${HOME}/.local/bin"
# No group definition, as that makes it harder to run docker.
USER runner

View File

@@ -62,6 +62,7 @@ RUN set -vx; \
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
ENV RUNNER_ASSETS_DIR=/runnertmp
ENV HOME=/home/runner
# Runner download supports amd64 as x64. Externalstmp is needed for making mount points work inside DinD.
#
@@ -88,6 +89,9 @@ RUN echo AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache > .env \
COPY entrypoint.sh /
COPY --chown=runner:docker patched $RUNNER_ASSETS_DIR/patched
# Add the Python "User Script Directory" to the PATH
ENV PATH="${PATH}:${HOME}/.local/bin"
USER runner
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD ["/entrypoint.sh"]