fix: add --platform=linux/amd64 to Dockerfiles for cross-platform build
这个提交包含在:
父节点
041456805e
当前提交
4d98ae151f
@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1.7
|
# syntax=docker/dockerfile:1.7
|
||||||
FROM node:22-alpine AS build
|
FROM --platform=linux/amd64 node:22-alpine AS build
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
COPY package.json ./package.json
|
COPY package.json ./package.json
|
||||||
@ -19,7 +19,7 @@ RUN cd ops-platform && \
|
|||||||
VITE_API_BASE_URL=${OPS_API_BASE_URL} \
|
VITE_API_BASE_URL=${OPS_API_BASE_URL} \
|
||||||
yarn build
|
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 nginx/ops.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=build /workspace/ops-platform/dist /usr/share/nginx/html
|
COPY --from=build /workspace/ops-platform/dist /usr/share/nginx/html
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1.7
|
# syntax=docker/dockerfile:1.7
|
||||||
FROM node:22-alpine AS build
|
FROM --platform=linux/amd64 node:22-alpine AS build
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
COPY package.json ./package.json
|
COPY package.json ./package.json
|
||||||
@ -22,7 +22,7 @@ RUN cd tenant-platform && \
|
|||||||
|
|
||||||
RUN cd docs-site && yarn build
|
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 nginx/tenant.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=build /workspace/tenant-platform/dist /usr/share/nginx/html/tenant
|
COPY --from=build /workspace/tenant-platform/dist /usr/share/nginx/html/tenant
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户