Add BuildKit and docker manifest command. close #390 ,close #391

Signed-off-by: khs1994 <khs1994@khs1994.com>
This commit is contained in:
khs1994
2019-03-29 11:41:02 +08:00
parent d3c197ddfc
commit 0370871867
12 changed files with 437 additions and 16 deletions

View File

@@ -0,0 +1,16 @@
FROM node:alpine as builder
WORKDIR /app
COPY package.json /app/
RUN npm i --registry=https://registry.npm.taobao.org \
&& rm -rf ~/.npm
COPY src /app/src
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /app/dist