Skip to content

Commit

Permalink
chore(docker): add user
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Mar 21, 2024
1 parent 492fcbe commit 69ab13d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion runtimes/bdrs-server/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,26 @@ ARG JVM_ARGS=""
ARG JAR
ARG ADDITIONAL_FILES

ARG APP_USER=docker
ARG APP_UID=10100

RUN addgroup --system "$APP_USER"

RUN adduser \
--shell /sbin/nologin \
--disabled-password \
--gecos "" \
--ingroup "$APP_USER" \
--no-create-home \
--uid "$APP_UID" \
"$APP_USER"

USER "$APP_USER"

RUN apk --no-cache add curl

Check warning on line 25 in runtimes/bdrs-server/src/main/docker/Dockerfile

View workflow job for this annotation

GitHub Actions / Analyze

[MEDIUM] Unpinned Package Version in Apk Add

Package version pinning reduces the range of versions that can be installed, reducing the chances of failure due to unanticipated changes

WORKDIR /app


COPY ${JAR} server.jar
COPY ${ADDITIONAL_FILES} ./

Expand Down

0 comments on commit 69ab13d

Please sign in to comment.