Containers: Custom Dockerfiles – Part II
In our last article, we led up to the point where we need to take our build process and create a custom Docker image. This is where things get even more fun because we have to go to the next evolution in our Docker journey.
Building a Custom Docker Image
In the previous section we created a custom Docker image that hosted our application, but what do you do if you need to deploy an application for which there is no supporting container image? Or if you need to use a specific version for which there is no existing container image? In this section we’ll create a new Dockerfile and build an image to use as our own base image for our application.
In this case we’ll start from the base “Java” image that is part of the official DockerHub image set and we’ll install a specific version of Tomcat (8.0.26). The Java base image is a Debian Linux image with the following hierarchy (extracted from a previous article in this series):
Read the entire article here, Containers: Custom Dockerfiles Part II