From c5b0eac7657cf6fa5998cd913ec52eb984413aa8 Mon Sep 17 00:00:00 2001 From: cmdoret Date: Thu, 23 Nov 2023 21:46:09 +0100 Subject: [PATCH] fix(docker): drop unused sh binary --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8f2cc69..6ae52a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,13 +51,13 @@ WORKDIR /app # Import user files COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /etc/group /etc/group -COPY --from=builder /bin/sh /bin/sh # Import binary COPY --from=builder \ /app/target/release/rdfpipe-rs \ /app/rdfpipe-rs +# Use unprivileged user USER rust:rust ENV PATH="/app/:${PATH}"