From 3e19a354bb68e07b8b768bbec0fd77737bedc055 Mon Sep 17 00:00:00 2001 From: Martin Gencur Date: Fri, 17 Mar 2023 10:57:01 +0100 Subject: [PATCH] Helloworld image running with non root user (#1787) --- test/test_images/helloworld/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_images/helloworld/Dockerfile b/test/test_images/helloworld/Dockerfile index a973e4a95..ce51652f6 100644 --- a/test/test_images/helloworld/Dockerfile +++ b/test/test_images/helloworld/Dockerfile @@ -21,5 +21,7 @@ RUN apk add --no-cache ca-certificates # Copy the binary to the production image from the builder stage. COPY --from=builder /app/server /server +USER 65532 + # Run the web service on container startup. CMD ["/server"]