Skip to content

Commit

Permalink
Update Dockerfile (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoBouttes authored May 2, 2024
1 parent 6f2b425 commit 3105acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM eclipse-temurin:21-jre-alpine
FROM eclipse-temurin:17-jre-alpine
WORKDIR /application

RUN addgroup -g 10000 javagroup
RUN adduser -D -s / -u 10000 javauser -G javagroup
RUN chown -R 10000:10000 /application

USER 10000
COPY target/*.jar metadata-api.war
COPY target/*.war metadata-api.war
ENTRYPOINT ["java", "-war", "/application/metadata-api.war"]

0 comments on commit 3105acc

Please sign in to comment.