From 07daecdb0652f764a00e2849d9696b551944fa23 Mon Sep 17 00:00:00 2001 From: Chanceium <71226606+Chanceium@users.noreply.github.com> Date: Tue, 15 Jul 2025 23:26:57 -0400 Subject: [PATCH] ix(docker): ensure ARM64 compatibility by setting platform in base image - Added `--platform=$BUILDPLATFORM` to `FROM` instruction in base stage - Prevents exec format errors during buildx bake for linux/arm64 - Improves support for multi-architecture builds (e.g., Apple Silicon, Raspberry Pi) --- images/production/Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/production/Containerfile b/images/production/Containerfile index 050fec4b..9373e5c4 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -1,6 +1,6 @@ ARG PYTHON_VERSION=3.11.6 ARG DEBIAN_BASE=bookworm -FROM python:${PYTHON_VERSION}-slim-${DEBIAN_BASE} AS base +FROM --platform=$BUILDPLATFORM python:${PYTHON_VERSION}-slim-${DEBIAN_BASE} AS base ARG WKHTMLTOPDF_VERSION=0.12.6.1-3 ARG WKHTMLTOPDF_DISTRO=bookworm