2025-05-16 06:24:24 -04:00
|
|
|
FROM node:24-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
2025-05-19 15:57:54 +08:00
|
|
|
ENV NODE_OPTIONS=--openssl-legacy-provider
|
2025-05-16 06:24:24 -04:00
|
|
|
RUN npm install --registry=https://registry.npmmirror.com && npm run build:stage
|
|
|
|
|
2024-04-08 11:15:16 +08:00
|
|
|
FROM registry.zsmarter.com/public/nginx:1.22.1
|
2025-05-16 06:24:24 -04:00
|
|
|
|
|
|
|
COPY --from=builder /app/dist /app/nginx/html
|
2025-05-21 03:14:08 +00:00
|
|
|
COPY --from=builder /app/nginx.conf /etc/nginx/nginx.conf
|
2025-05-16 06:24:24 -04:00
|
|
|
|
2024-04-09 10:24:23 +08:00
|
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
2024-04-09 11:38:15 +08:00
|
|
|
|
2024-04-09 11:19:37 +08:00
|
|
|
|
2024-04-09 10:24:23 +08:00
|
|
|
|