From 43ac60c8fe0e2cb591e51cfe7818be5155075d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 16 Feb 2026 12:17:37 +0100 Subject: [PATCH] moved targetarch argument to correct position --- Dockerfile | 5 ++--- Dockerfile-frankenphp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 077c8d69..e848acc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,10 @@ ARG BASE_IMAGE=debian:bookworm-slim ARG PHP_VERSION=8.4 ARG NODE_VERSION=22 -ARG TARGETARCH - # Node.js build stage for building frontend assets # Use native platform for build stage as it's platform-independent FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-bookworm-slim AS node-builder - +ARG TARGETARCH WORKDIR /app # Install composer and minimal PHP for running Symfony commands @@ -66,6 +64,7 @@ RUN yarn cache clean && rm -rf node_modules/ # Base stage for PHP FROM ${BASE_IMAGE} AS base ARG PHP_VERSION +ARG TARGETARCH # Use BuildKit cache mounts for apt in base stage RUN --mount=type=cache,id=apt-cache-$TARGETARCH,target=/var/cache/apt \ diff --git a/Dockerfile-frankenphp b/Dockerfile-frankenphp index ed3b2d11..4bf9eeeb 100644 --- a/Dockerfile-frankenphp +++ b/Dockerfile-frankenphp @@ -1,10 +1,9 @@ ARG NODE_VERSION=22 -ARG TARGETARCH # Node.js build stage for building frontend assets # Use native platform for build stage as it's platform-independent FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-bookworm-slim AS node-builder - +ARG TARGETARCH WORKDIR /app # Install composer and minimal PHP for running Symfony commands @@ -64,7 +63,7 @@ RUN yarn cache clean && rm -rf node_modules/ # FrankenPHP base stage FROM dunglas/frankenphp:1-php8.4 AS frankenphp_upstream - +ARG TARGETARCH RUN --mount=type=cache,id=apt-cache-$TARGETARCH,target=/var/cache/apt \ --mount=type=cache,id=apt-lists-$TARGETARCH,target=/var/lib/apt/lists \ apt-get update && apt-get -y install \