5fc79e5308dca3906.jpg_fo742.jpg

.dockerignore

node_modules

Dockerfile

FROM node:10 AS builder
WORKDIR /app
COPY . .
RUN yarn install && yarn build

FROM nginx:alpine
WORKDIR /usr/share/nginx/html
RUN rm -rf ./*
COPY --from=builder /app/dist .
ENTRYPOINT ["nginx", "-g", "daemon off;"]

发表回复

您的电子邮箱地址不会被公开。

Captcha Code