Created
April 22, 2020 03:28
-
-
Save GiuseppeMP/be2e1b53bc1933f226f0b273fd7712cd to your computer and use it in GitHub Desktop.
spring-boot gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM adoptopenjdk/openjdk9-openj9:latest | |
# Change "latest" for "alpine" or to a specific version. | |
RUN mkdir /opt/shareclasses | |
RUN mkdir /opt/app | |
COPY app.jar /opt/app | |
CMD ["java", "-Xmx128m", "-XX:+IdleTuningGcOnIdle", "-Xtune:virtualized", "-Xscmx128m", "-Xscmaxaot100m", "-Xshareclasses:cacheDir=/opt/shareclasses", "-jar", "/opt/app/app.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment