2019-03-29 11:41:02 +08:00
|
|
|
FROM node:alpine as builder
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY package.json /app/
|
|
|
|
|
2022-02-12 11:09:47 +08:00
|
|
|
RUN npm i --registry=https://registry.npmmirror.com \
|
2019-03-29 11:41:02 +08:00
|
|
|
&& rm -rf ~/.npm
|
|
|
|
|
|
|
|
COPY src /app/src
|
|
|
|
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
|
|
|
|
COPY --from=builder /app/dist /app/dist
|