From f9becf6f5e7e2c40c1fea149d2cf0600e4437bf1 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 1 Nov 2024 14:54:39 -0500 Subject: Add a user on the container Signed-off-by: Matt Strapp --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d97cf15..13ac28b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ COPY . . RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOFLAGS=-buildvcs=false tinygo build -o locusts ./include FROM scratch +USER nobody LABEL org.opencontainers.image.licenses=0BSD LABEL org.opencontainers.image.source=https://github.com/locusts-r-us/locusts LABEL org.opencontainers.image.title=Locusts -- cgit v1.2.3