fix(docker): pin frontend stage to BUILDPLATFORM and drop removed buildx input

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).
This commit is contained in:
MHSanaei 2026-05-10 17:22:15 +02:00
parent e2649f98df
commit 94a7dbfe3c
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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