From 4d98ae151f5e3680cbcd8c4b60f941de8267a539 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 14 May 2026 15:20:45 +0800 Subject: [PATCH] fix: add --platform=linux/amd64 to Dockerfiles for cross-platform build --- Dockerfile.ops | 4 ++-- Dockerfile.tenant | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.ops b/Dockerfile.ops index 3bf0f78..698c911 100644 --- a/Dockerfile.ops +++ b/Dockerfile.ops @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.7 -FROM node:22-alpine AS build +FROM --platform=linux/amd64 node:22-alpine AS build WORKDIR /workspace COPY package.json ./package.json @@ -19,7 +19,7 @@ RUN cd ops-platform && \ VITE_API_BASE_URL=${OPS_API_BASE_URL} \ yarn build -FROM nginx:1.27-alpine +FROM --platform=linux/amd64 nginx:1.27-alpine COPY nginx/ops.conf /etc/nginx/conf.d/default.conf COPY --from=build /workspace/ops-platform/dist /usr/share/nginx/html diff --git a/Dockerfile.tenant b/Dockerfile.tenant index 3f29374..f9634ef 100644 --- a/Dockerfile.tenant +++ b/Dockerfile.tenant @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.7 -FROM node:22-alpine AS build +FROM --platform=linux/amd64 node:22-alpine AS build WORKDIR /workspace COPY package.json ./package.json @@ -22,7 +22,7 @@ RUN cd tenant-platform && \ RUN cd docs-site && yarn build -FROM nginx:1.27-alpine +FROM --platform=linux/amd64 nginx:1.27-alpine COPY nginx/tenant.conf /etc/nginx/conf.d/default.conf COPY --from=build /workspace/tenant-platform/dist /usr/share/nginx/html/tenant