From 94a7dbfe3ce1881c62dd3a4babcfeee0a74c1596 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 10 May 2026 17:22:15 +0200 Subject: [PATCH] fix(docker): pin frontend stage to BUILDPLATFORM and drop removed buildx input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit node:22-alpine has no manifest for linux/arm/v6, breaking multi-arch builds. Frontend output is static JS/CSS that doesn't need to be built per target arch — pin the stage to $BUILDPLATFORM so Vite always runs on the host. Also drop `install: true` from setup-buildx-action@v4 (input was removed). --- .github/workflows/docker.yml | 2 -- Dockerfile | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0dd4847d..9f2ee72a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,8 +36,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 - with: - install: true - name: Login to Docker Hub uses: docker/login-action@v4 diff --git a/Dockerfile b/Dockerfile index 717ec0af..06ddc638 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # ======================================================== # Stage: Frontend (Vite) # ======================================================== -FROM node:22-alpine AS frontend +FROM --platform=$BUILDPLATFORM node:22-alpine AS frontend WORKDIR /src/frontend COPY frontend/package.json frontend/package-lock.json ./ RUN npm ci