Container Images

  • When building a container, you first define a Docker image
  • The definitions usually goes in a "Dockerfile"
  • Define the starting point for where to build from
  • Use sequential commands to define the desired environment state
FROM maven:3.8.1-jdk-11 as builder

WORKDIR /app
COPY ./pom.xml /app
COPY src /app/src
RUN mvn package

6 / 14