Skip to content

Commit

Permalink
IS-17464: switch to multistage build
Browse files Browse the repository at this point in the history
  • Loading branch information
BaardBouvet committed May 29, 2024
1 parent 5aa4a96 commit eff00d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN mvn -f /home/app/pom.xml clean package
#
FROM openjdk:11-jre-slim
COPY --from=build /home/app/target/duke-microservice-1.0-SNAPSHOT.jar /srv/
RUN addgroup --system -gid 1000 sesam && adduser -S -D -H -uid 1000 -gid sesam sesam
RUN addgroup --system -gid 1000 sesam && adduser --system --disabled-password -H -uid 1000 -gid sesam sesam
EXPOSE 4567
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /srv/duke-microservice-1.0-SNAPSHOT.jar"]

Expand Down

0 comments on commit eff00d6

Please # to comment.