From 82e10b06b17fa8dbcf12ff557044ceb30cb069a9 Mon Sep 17 00:00:00 2001 From: Nicko Guyer Date: Wed, 10 Jan 2024 13:41:56 -0500 Subject: [PATCH] Change Dockerfile to use non-root user Signed-off-by: Nicko Guyer --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 504fc332..8857062c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,9 @@ RUN make FROM debian:bullseye-slim WORKDIR /ffsigner RUN apt update -y \ - && apt install -y curl jq \ - && rm -rf /var/lib/apt/lists/* + && apt install -y curl jq \ + && rm -rf /var/lib/apt/lists/* COPY --from=builder /ffsigner/firefly-signer /usr/bin/ffsigner +USER 1001 ENTRYPOINT [ "/usr/bin/ffsigner" ]