From a5138f7572680a9783309ff8ff87b25568cbbc38 Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 24 Dec 2024 23:13:29 +0100 Subject: [PATCH] cleanup --- docker/Dockerfile.agent.alpine.multiarch.rootless | 2 +- docker/Dockerfile.server.alpine.multiarch.rootless | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.agent.alpine.multiarch.rootless b/docker/Dockerfile.agent.alpine.multiarch.rootless index 5cfeef073..3dfe4b8b5 100644 --- a/docker/Dockerfile.agent.alpine.multiarch.rootless +++ b/docker/Dockerfile.agent.alpine.multiarch.rootless @@ -18,7 +18,7 @@ COPY --from=build /src/dist/woodpecker-agent /bin/ RUN mkdir -p /etc/woodpecker RUN addgroup -S woodpecker && adduser -S woodpecker -G woodpecker -RUN mkdir -p /var/lib/woodpecker && chown -R woodpecker:woodpecker /etc/woodpecker +RUN mkdir -p /etc/woodpecker && chown -R woodpecker:woodpecker /etc/woodpecker USER woodpecker diff --git a/docker/Dockerfile.server.alpine.multiarch.rootless b/docker/Dockerfile.server.alpine.multiarch.rootless index 3f1a3c662..66edc5710 100644 --- a/docker/Dockerfile.server.alpine.multiarch.rootless +++ b/docker/Dockerfile.server.alpine.multiarch.rootless @@ -14,5 +14,7 @@ COPY dist/server/${TARGETOS}_${TARGETARCH}/woodpecker-server /bin/ RUN addgroup -S woodpecker && adduser -S woodpecker -G woodpecker RUN mkdir -p /var/lib/woodpecker && chown -R woodpecker:woodpecker /var/lib/woodpecker +USER woodpecker + HEALTHCHECK CMD ["/bin/woodpecker-server", "ping"] ENTRYPOINT ["/bin/woodpecker-server"]