Skip to content

Commit

Permalink
Docker as non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 committed Nov 7, 2023
1 parent 176839b commit 06e96eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM eclipse-temurin:21

WORKDIR /app
COPY ./target/dawn-patrol ./dawn-patrol

ENV HF_API_KEY=
ENV OPENAI_TOKEN=

RUN adduser --system --group --uid 1000 --shell /bin/bash dawn

USER dawn

WORKDIR /app
COPY ./target/dawn-patrol ./dawn-patrol

ENTRYPOINT [ "/app/dawn-patrol" ]

0 comments on commit 06e96eb

Please sign in to comment.