April 2018
Intermediate to advanced
382 pages
10h 11m
English
Let's understand our first Dockerfile:
FROM openjdk:8-jdk
This FROM keyword will ask Docker to pull the openjdk:8-jdk image, but what does it mean?
It means that there's a registry somewhere where your Docker will find prebuilt images. If there's no image registry in your local environment, it will search for it in Docker Hub, the official and public Docker registry in the cloud.
And when you say that you are using a pre-built image, it means that you don't need to build, in our case, the whole Linux container from scratch. There's already a template that you can rely on:
ENV GLASSFISH_HOME /usr/local/glassfishENV PATH ${GLASSFISH_HOME}/bin:$PATHENV GLASSFISH_PKG latest-glassfish.zipENV GLASSFISH_URL https://download.oracle.com/glassfish/5.0/nightly/latest-glassfish.zip ...Read now
Unlock full access