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 6a34b51
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

WORKDIR /app
COPY --chown=0:0 ./target/dawn-patrol ./dawn-patrol

USER dawn

ENTRYPOINT [ "/app/dawn-patrol" ]

0 comments on commit 6a34b51

Please sign in to comment.