aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-11-01 14:54:39 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-11-01 14:54:39 -0500
commitf9becf6f5e7e2c40c1fea149d2cf0600e4437bf1 (patch)
tree09ffc7cb43136e08ba8ce349affd1d2fa5aff20b /Dockerfile
parentci: Re-enable megalinter (diff)
downloadlocusts-f9becf6f5e7e2c40c1fea149d2cf0600e4437bf1.tar
locusts-f9becf6f5e7e2c40c1fea149d2cf0600e4437bf1.tar.gz
locusts-f9becf6f5e7e2c40c1fea149d2cf0600e4437bf1.tar.bz2
locusts-f9becf6f5e7e2c40c1fea149d2cf0600e4437bf1.tar.lz
locusts-f9becf6f5e7e2c40c1fea149d2cf0600e4437bf1.tar.xz
locusts-f9becf6f5e7e2c40c1fea149d2cf0600e4437bf1.tar.zst
locusts-f9becf6f5e7e2c40c1fea149d2cf0600e4437bf1.zip
Add a user on the container
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r--Dockerfile1
1 files changed, 1 insertions, 0 deletions
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