Skip to content

Commit

Permalink
User nonroot exists now....
Browse files Browse the repository at this point in the history
Signed-off-by: Till Wegmueller <[email protected]>
  • Loading branch information
Toasterson committed Aug 17, 2023
1 parent 8be054c commit 55ea777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN cargo build --release -p ${PACKAGE}
FROM cgr.dev/chainguard/wolfi-base
ARG PACKAGE
USER root
RUN adduser -D nonroot
#RUN adduser -D nonroot
RUN apk update && apk add --no-cache --update-cache openssl libgcc
USER nonroot
COPY --from=build --chown=nonroot:nonroot /app/target/release/${PACKAGE} /usr/local/bin/${PACKAGE}
Expand Down

0 comments on commit 55ea777

Please sign in to comment.