Drop root privileges in container.

This commit is contained in:
Joe Testa 2023-09-05 11:29:45 -04:00
commit 7810552c27

View file

@ -23,4 +23,8 @@ FROM scratch
LABEL maintainer="Vidar Holen <vidar@vidarholen.net>"
WORKDIR /mnt
COPY --from=alpine /bin/shellcheck /bin/
# Drop root privileges.
USER 65535:65535
ENTRYPOINT ["/bin/shellcheck"]