Skip to content

Commit

Permalink
change jvm version and set optimization flags
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy12c committed May 30, 2023
1 parent 18dadd9 commit 067b444
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
Expand Up @@ -28,11 +28,11 @@ ADD /src $HOME/src
RUN mvn package -s $HOME/settings.xml -DskipTests=true

# Package stage
FROM openjdk:11
FROM ibm-semeru-runtimes:open-11.0.18_10-jre
ENV HOME=/home/app
ENV export $(cat .env | xargs)
WORKDIR $HOME
COPY --from=build $HOME/target/*.jar app.jar

EXPOSE 8080
ENTRYPOINT ["java","-Xmx250m","-jar","app.jar"]
ENTRYPOINT ["java","-Xmx250m","-Xshareclasses","-XX:+CMSClassUnloadingEnabled","-XX:+UseG1GC","-XX:+ExplicitGCInvokesConcurrent","-jar","app.jar"]

0 comments on commit 067b444

Please sign in to comment.