|
|
@@ -1,9 +1,9 @@
|
|
|
-FROM node:10-alpine as builder
|
|
|
+FROM node:14-alpine as builder
|
|
|
WORKDIR /code
|
|
|
-RUN yarn config set registry https://registry.npm.taobao.org/
|
|
|
+RUN yarn config set registry https://registry.npmmirror.com
|
|
|
ADD package.json /code
|
|
|
-RUN yarn install --production
|
|
|
-ADD . /code
|
|
|
+RUN yarn install --production
|
|
|
+ADD . /code
|
|
|
RUN yarn build
|
|
|
|
|
|
FROM nginx:1.19-alpine
|