Skip to content

Commit

Permalink
Add RUNNER_TOOL_CACHE to image to support runner tools caching
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmichaelguy authored Dec 7, 2023
1 parent 9e3e57f commit 2366281
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ RUN adduser --disabled-password --gecos "" --uid 1001 runner \
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers \
&& echo "Defaults env_keep += \"DEBIAN_FRONTEND\"" >> /etc/sudoers

ENV RUNNER_TOOL_CACHE=/opt/hostedtoolcache
RUN mkdir ${RUNNER_TOOL_CACHE} \
&& chgrp docker ${RUNNER_TOOL_CACHE} \
&& chmod g+rwx ${RUNNER_TOOL_CACHE}

WORKDIR /home/runner

COPY --chown=runner:docker --from=build /actions-runner .
Expand Down

0 comments on commit 2366281

Please sign in to comment.