Skip to content

Commit c742df7

Browse files
Merge pull request #4 from thefringeninja/luser
Run as Non-Root User
2 parents 5a1f0af + bd09028 commit c742df7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ RUN apk add ca-certificates bash
1818

1919
COPY --from=build_base /tmp/es-gencert/out/es-gencert-cli /app/es-gencert-cli
2020

21+
RUN adduser \
22+
--disabled-password \
23+
--gecos "" \
24+
--no-create-home \
25+
--uid "1000" \
26+
"eventstore" && \
27+
chown eventstore:eventstore /app \
28+
--recursive
29+
30+
USER eventstore
2131
ENV PATH=$PATH:/app
2232
ENTRYPOINT ["/app/es-gencert-cli"]
2333
CMD []

0 commit comments

Comments
 (0)