Improve user creation in Dockerfile
This commit is contained in:
parent
ccdd52afa4
commit
4fc8725438
1 changed files with 1 additions and 1 deletions
|
@ -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 /
|
||||
|
||||
|
|
Loading…
Reference in a new issue