Drop root privileges in container.
This commit is contained in:
parent
90d3172dfe
commit
7810552c27
|
@ -23,4 +23,8 @@ FROM scratch
|
||||||
LABEL maintainer="Vidar Holen <vidar@vidarholen.net>"
|
LABEL maintainer="Vidar Holen <vidar@vidarholen.net>"
|
||||||
WORKDIR /mnt
|
WORKDIR /mnt
|
||||||
COPY --from=alpine /bin/shellcheck /bin/
|
COPY --from=alpine /bin/shellcheck /bin/
|
||||||
|
|
||||||
|
# Drop root privileges.
|
||||||
|
USER 65535:65535
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/shellcheck"]
|
ENTRYPOINT ["/bin/shellcheck"]
|
||||||
|
|
Loading…
Reference in New Issue