From 4fc872543887f9aeccabc9da98396de88f77e19d Mon Sep 17 00:00:00 2001 From: musselman Date: Tue, 21 Nov 2023 14:23:56 -0600 Subject: [PATCH] Improve user creation in Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 711f118..a01d2a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN go build -o /home/notatio/notatio # Stage 2: Create the final image FROM docker.io/library/alpine:3.18.4 # Add the user notatio and create its home directory -RUN adduser -D -g '' notatio +RUN adduser --home /home/notatio --disabled-password --gecos "" notatio USER notatio WORKDIR /