This commit is contained in:
pat-s 2024-12-24 23:13:29 +01:00
parent a5a3936d05
commit a5138f7572
No known key found for this signature in database
GPG key ID: 3C6318841EF78925
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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"]