From d763e697996fa4b4bfc02faa0c2aec00abc85173 Mon Sep 17 00:00:00 2001 From: Matthew Cengia Date: Mon, 23 Jan 2023 08:28:20 +0700 Subject: [PATCH] Use target platform (rather than build platform) for multi-platform container images Signed-off-by: Matthew Cengia --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 011c7f89..3a430d6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN yarn build RUN mv -f target/config.json /config.json.bundled \ && ln -sf /tmp/config.json target/config.json -FROM --platform=${BUILDPLATFORM} docker.io/nginxinc/nginx-unprivileged:alpine +FROM --platform=${TARGETPLATFORM} docker.io/nginxinc/nginx-unprivileged:alpine # Copy the dynamic config script COPY ./docker/dynamic-config.sh /docker-entrypoint.d/99-dynamic-config.sh