Image should not run as root
sathieu opened this issue · 2 comments
sathieu commented
Is your feature request related to a problem? Please describe.
As a security best-practice, images running as root should be limited
Describe the solution you'd like
use USER ...
in the Dockerfile
sathieu commented
As the image is FROM scratch
, something like this should be used:
FROM ubuntu:latest
RUN useradd -u 10001 scratchuser
FROM scratch
COPY dosomething /dosomething
COPY --from=0 /etc/passwd /etc/passwd
USER scratchuser
ENTRYPOINT ["/dosomething"]
mittwald-machine commented
There has not been any activity to this issue in the last 14 days. It will automatically be closed after 7 more days. Remove the stale
label to prevent this.