Run container as non-root user
Add USER 65534:65534 to the scratch runtime image so the checker process does not run as root.
This commit is contained in:
parent
a9a704c0ff
commit
bf409ba33c
1 changed files with 1 additions and 0 deletions
|
|
@ -10,5 +10,6 @@ RUN CGO_ENABLED=0 go build -ldflags "-X main.Version=${CHECKER_VERSION}" -o /che
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /checker-zonemaster /checker-zonemaster
|
COPY --from=builder /checker-zonemaster /checker-zonemaster
|
||||||
|
USER 65534:65534
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["/checker-zonemaster"]
|
ENTRYPOINT ["/checker-zonemaster"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue