From 24aa984eaf78ad16d2b888aad41ad6a1d2d7b647 Mon Sep 17 00:00:00 2001 From: Chad Crouch Date: Wed, 1 Jan 2025 13:03:34 +0200 Subject: [PATCH] fix - adjust docker permissions --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b8fa855..168390b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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}" @@ -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"]