mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-27 19:00:35 +00:00
cleanup
This commit is contained in:
parent
a5a3936d05
commit
a5138f7572
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue