Add user 'notatio'

This commit is contained in:
James Musselman 2023-11-21 12:54:35 -06:00
parent c2a76ed51a
commit 7da4f9830f

View file

@ -15,6 +15,8 @@ RUN go build -o /notatio
# Stage 2: Create the final image # Stage 2: Create the final image
FROM docker.io/library/alpine:3.18.4 FROM docker.io/library/alpine:3.18.4
# Add the user notatio and create its home directory
RUN adduser -D -g '' notatio
USER notatio USER notatio
WORKDIR / WORKDIR /