Created
September 28, 2020 16:16
-
-
Save thiagolocatelli/cfde6f407ca06948dd53d71e69414285 to your computer and use it in GitHub Desktop.
Dockerfile
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 openjdk:13-jdk-alpine as jlink-package | |
RUN jlink \ | |
--verbose \ | |
--strip-java-debug-attributes \ | |
--compress=2 \ | |
--no-man-pages \ | |
--no-header-files \ | |
--module-path /opt/openjdk-13/jmods \ | |
--add-modules jdk.jfr,jdk.management.agent,java.base,java.sql,java.logging,java.xml,jdk.unsupported,java.sql,java.naming,java.desktop,java.management,java.security.jgss,java.instrument \ | |
--output /opt/jdk-13-mini-runtime | |
FROM frolvlad/alpine-glibc:alpine-3.11_glibc-2.31 | |
ENV JAVA_HOME=/opt/jdk-13-mini-runtime | |
ENV PATH="$PATH:$JAVA_HOME/bin" | |
ENV LANG=C.UTF-8 | |
COPY --from=jlink-package /opt/jdk-13-mini-runtime /opt/jdk-13-mini-runtime | |
CMD ["java", "-version"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment