Skip to content

Commit

Permalink
chore(docker): define uid and gid directly in user, instead of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-jhartmann committed Jul 24, 2024
1 parent a6774f0 commit 060166b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ RUN --mount=type=cache,target=/root/.m2 mvn -B clean package -pl :$BUILD_TARGET
# Copy the jar and build image
FROM eclipse-temurin:21-jre-alpine AS traceability-app

ARG UID=10000
ARG GID=1000

WORKDIR /app

COPY --chmod=755 --from=maven /build/tx-backend/target/traceability-app-*-exec.jar app.jar

USER ${UID}:${GID}
USER 10000:1000

ENTRYPOINT ["java", "-jar", "app.jar"]

Expand Down

0 comments on commit 060166b

Please sign in to comment.