Skip to content

Commit

Permalink
Fix build stage name in gateway image (#1535)
Browse files Browse the repository at this point in the history
* Fix build stage name

* Fix COPY from
  • Loading branch information
Tansito authored Nov 4, 2024
1 parent 22f6dce commit 01ba2cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 01ba2cf

Please sign in to comment.