diff --git a/Dockerfile b/Dockerfile index a60f2b3..71bfd01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,11 @@ FROM scratch +# Create a user and group with a specific UID and GID. +USER 1000:1000 + COPY scanner-clair /scanner-clair +# Switch to the non-root user. +USER 1000:1000 + ENTRYPOINT ["/scanner-clair"]