Skip to content

Commit

Permalink
fix - adjust docker permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
chaddyc committed Jan 1, 2025
1 parent e925ee8 commit 24aa984
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ ARG UBUNTU_VERSION=20.04
FROM ubuntu:${UBUNTU_VERSION}
LABEL org.opencontainers.image.authors="https://github.com/chaddyc"

ENV AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
RUN mkdir -p /opt/hostedtoolcache

ARG TARGETARCH
RUN echo "Detected architecture: ${TARGETARCH}"

Expand Down Expand Up @@ -53,7 +56,7 @@ RUN chown -R runner:runner /runner
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

USER root
USER runner
WORKDIR /runner

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 24aa984

Please sign in to comment.