From 5caffe92bf20fc85c90c96b5e28f50c06618a8c5 Mon Sep 17 00:00:00 2001 From: Kai Tillman Date: Thu, 19 Sep 2024 13:26:27 -0400 Subject: [PATCH] Set a user to work with new security policy --- generators/go/modules/dockerfile/Dockerfile.template | 1 + 1 file changed, 1 insertion(+) diff --git a/generators/go/modules/dockerfile/Dockerfile.template b/generators/go/modules/dockerfile/Dockerfile.template index 4985c6f..32fe3c6 100644 --- a/generators/go/modules/dockerfile/Dockerfile.template +++ b/generators/go/modules/dockerfile/Dockerfile.template @@ -25,5 +25,6 @@ ENTRYPOINT /go/bin/dlv --listen=:$DEBUG_PORT --headless=true --api-version=2 --a FROM alpine AS run COPY --from=builder /build/{{{ _toDir .ProjectName }}} / +USER 1000 CMD ["/{{{ _toDir .ProjectName }}}"]