This repository was archived by the owner on Mar 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ ENV JAVA_FULL_VERSION="${JAVA_MAJOR_VERSION}.${JAVA_MINOR_VERSION}.${JAVA_UPDATE
2222ENV JAVA_HOME="/opt/java/${JAVA_TYPE}-${JAVA_FULL_VERSION}" \
2323 JAVA_TAR="${JAVA_TYPE}-${JAVA_FULL_VERSION}_linux-x64_bin.tar.gz"
2424
25- # Download oracle jre -> extract it -> add app user & group -> cleanup
25+ # Download oracle jdk -> extract it -> cleanup -> add app user & group
2626# You can use USER 'app' for you app
2727RUN cd /tmp \
2828 && apt-get update \
@@ -32,7 +32,7 @@ RUN cd /tmp \
3232 --progress=dot:mega --tries=10 "http://download.oracle.com/otn-pub/java/jdk/${JAVA_FULL_VERSION}+${JAVA_BUILD}/${JAVA_PATH}/${JAVA_TAR}" \
3333 && tar -xzf $JAVA_TAR -C /opt/java \
3434 && ln -s $JAVA_HOME $JAVA_HOME/bin/* /usr/bin/ \
35- && rm -rf $JAVA_HOME/* src.zip \
35+ && rm -rf $JAVA_HOME/lib/ src.zip \
3636 $JAVA_HOME/lib/missioncontrol \
3737 $JAVA_HOME/lib/*javafx* \
3838 $JAVA_HOME/lib/*jfx* \
@@ -47,8 +47,7 @@ RUN cd /tmp \
4747 $JAVA_HOME/lib/deploy* \
4848 $JAVA_HOME/lib/fonts \
4949 $JAVA_HOME/lib/oblique-fonts \
50- $JAVA_HOME/jmods/*javafx* \
51- $JAVA_HOME/jmods/*javaws* \
50+ $JAVA_HOME/jmods \
5251 && apt-get remove -y wget \
5352 && apt-get clean -y \
5453 && apt-get autoremove -y \
You can’t perform that action at this time.
0 commit comments