mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Drop root privileges in container.
This commit is contained in:
parent
90d3172dfe
commit
7810552c27
1 changed files with 4 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue