FROM public.ecr.aws/amazoncorretto/amazoncorretto:8 # Install docker and buildx extension RUN amazon-linux-extras enable docker && \ yum clean metadata && \ yum install -y docker tar gzip unzip file COPY --from=docker/buildx-bin:latest /buildx /usr/libexec/docker/cli-plugins/docker-buildx # Install maven from apache.org, as version in the yum repository doesn't support latest maven plugins ENV PATH="$PATH:/apache-maven/bin" RUN mkdir /apache-maven && \ curl https://archive.apache.org/dist/maven/maven-3/3.8.7/binaries/apache-maven-3.8.7-bin.tar.gz | \ tar -xz -C /apache-maven --strip-components 1