From 56839a14c5cf8dfe8e9f1bbff18fc5164bc9e4cb Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Tue, 29 Nov 2022 10:45:22 -0700 Subject: [PATCH] Update Containerfile --- Containerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Containerfile b/Containerfile index 0054b0a17..033db8ebc 100644 --- a/Containerfile +++ b/Containerfile @@ -1,8 +1,8 @@ # Stage 0 - Caddy -FROM docker.io/library/caddy:latest AS caddy +FROM --platform=$TARGETOS/$TARGETARCH docker.io/library/caddy:latest AS caddy # Stage 1 - Builder -FROM registry.access.redhat.com/ubi9/nodejs-16-minimal AS builder +FROM --platform=$TARGETOS/$TARGETARCH registry.access.redhat.com/ubi9/nodejs-16-minimal AS builder RUN npm install -g yarn @@ -27,7 +27,7 @@ COPY --chown=1001:0 .env.example ./.env COPY --chown=1001:0 artisan CHANGELOG.md composer.json composer.lock LICENSE.md README.md SECURITY.md . # Stage 2 - Final -FROM registry.access.redhat.com/ubi9/ubi-minimal +FROM --platform=$TARGETOS/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal RUN microdnf update -y \ && rpm --install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \