diff --git a/Dockerfile b/Dockerfile index 1747bec..568aafd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ -FROM node:20-alpine AS builder +FROM registry.cn-shenzhen.aliyuncs.com/zuoge-proxy/node:20-alpine AS build WORKDIR /app COPY package*.json yarn.lock ./ RUN yarn install --frozen-lockfile COPY . . RUN yarn build -FROM nginx:alpine +# 部署阶段 +FROM crpi-an5dzzjadzt6601u.cn-shenzhen.personal.cr.aliyuncs.com/softnook-proxy/nginx:1.27.3-alpine AS app COPY --from=builder /app/dist /usr/share/nginx/html EXPOSE 80 \ No newline at end of file