Building a Docker Image Without an Internet Connection

In $OPE_HOME/docker/base/1.0/Dockerfile, the 'FROM registry.access.redhat.com/ubi8/ubi-minimal' instruction initializes a new build stage and sets the base image for subsequent instructions. You can accept the default base image, which is the alpine image from Docker's public repository, or you can change the instruction and provide a valid source for a different base image. You can pull a valid base image from Docker's public repository or you can create your base image, push it to a public or private Docker registry, and then use the newly created image as a base image. For more information about creating your base Docker image, see the Docker documentation related to Creating a Base Image.

In $OPE_HOME/docker/base/1.0/Dockerfile, you can find instructions for downloading wget and unzip utilities. These instructions can be modified to pick up the installers of the utilities from the Docker context and install them in the image.

In this case, the Docker context for $OPE_HOME/docker/base/1.0/Dockerfile is $OPE_HOME/docker/base/1.0

The Docker context for $OPE_HOME/docker/base/2.0/Dockerfile is $OPE_HOME/docker/base/2.0

In $OPE_HOME/docker/base/2.0/Dockerfile, you can find instructions for creating Python docker image and installing Python modules required for starting Recommendation Engine Core service.