From 01ba2cf0284b44f82507e2a86e597d85ff00a11a Mon Sep 17 00:00:00 2001 From: David <9059044+Tansito@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:23:22 +0100 Subject: [PATCH] Fix build stage name in gateway image (#1535) * Fix build stage name * Fix COPY from --- gateway/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gateway/Dockerfile b/gateway/Dockerfile index e95df3aa3..364189296 100644 --- a/gateway/Dockerfile +++ b/gateway/Dockerfile @@ -2,16 +2,16 @@ ARG MICRO_IMAGE_DIR=/ubi-micro-img # BASE image using UBI 9 micro where the # application and requirements will be installed -FROM registry.access.redhat.com/ubi9-micro:9.4-15 AS BASE +FROM registry.access.redhat.com/ubi9-micro:9.4-15 AS base # BUILD image using UBI 9 where the dependencies that # require installing with a package manager will be installed -FROM registry.access.redhat.com/ubi9:9.4-1214.1726694543 AS BUILD +FROM registry.access.redhat.com/ubi9:9.4-1214.1726694543 AS build ARG MICRO_IMAGE_DIR # Copy the BASE image into the BUILD image RUN mkdir ${MICRO_IMAGE_DIR} -COPY --from=BASE / ${MICRO_IMAGE_DIR} +COPY --from=base / ${MICRO_IMAGE_DIR} # Install Python inside the BASE image # hadolint ignore=DL3041 @@ -24,10 +24,10 @@ RUN dnf install --installroot ${MICRO_IMAGE_DIR} --nodocs -y \ # APP image from `scratch` which will be the final image # and remaining application requirements will be installed -FROM scratch AS APP +FROM scratch AS app ARG MICRO_IMAGE_DIR # hadolint ignore=DL3045 -COPY --from=BUILD ${MICRO_IMAGE_DIR}/ . +COPY --from=build ${MICRO_IMAGE_DIR}/ . # create symlinks for python RUN ln -s /usr/bin/python3.11 /usr/bin/python