Open jiftle opened 2 years ago
修改 dockerfile 文件:
FROM registry.cn-shanghai.aliyuncs.com/lwmeng/node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build:prod
FROM registry.cn-shanghai.aliyuncs.com/lwmeng/nginx
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
os: [Release] Version=20.7.1 Type=Desktop Type[zh_CN]=社区版 Edition=Y2020E0001 Copyright=Y2020CR001 [Addition] Milestone= Buildid=build1
error