Add get-docker-url script to image before executing it

pull/22089/head
Madhura Bhave 5 years ago
parent bbf05364ff
commit a0a0d28582

@ -27,9 +27,8 @@ test -f /opt/openjdk/bin/javac
###########################################################
# DOCKER
###########################################################
DOCKER_URL=$( ./get-docker-url.sh )
cd /
DOCKER_URL=$( ./get-docker-url.sh )
curl -L ${DOCKER_URL} | tar zx
mv /docker/* /bin/
chmod +x /bin/docker*

@ -3,6 +3,7 @@ FROM ubuntu:bionic-20200219
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh
RUN ./setup.sh java8
ADD get-docker-url.sh /get-docker-url.sh
ENV JAVA_HOME /opt/openjdk
ENV PATH $JAVA_HOME/bin:$PATH

@ -3,6 +3,7 @@ FROM ubuntu:bionic-20200219
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh
RUN ./setup.sh java11
ADD get-docker-url.sh /get-docker-url.sh
ENV JAVA_HOME /opt/openjdk
ENV PATH $JAVA_HOME/bin:$PATH

Loading…
Cancel
Save