diff --git a/.dockerignore b/.dockerignore index 62d7c92..cdf0293 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,6 @@ .vscode/ .idea/ node_modules/ -dist/ **/*.log LICENSE README.md diff --git a/Dockerfile b/Dockerfile index ebf16c7..bd4bdf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ -FROM node:12 AS builder -WORKDIR /app -ADD package.json /app/ -RUN npm config set registry https://registry.npmmirror.com && npm install -ADD . /app -RUN npm run build +#FROM node:12 AS builder +#WORKDIR /app +#ADD package.json /app/ +#RUN npm config set registry https://registry.npmmirror.com && npm install +#ADD . /app +#RUN npm run build +# +#FROM busybox +#LABEL maintainer thomas.hairong@gmail.com +#COPY --from=builder /app/dist /html FROM busybox LABEL maintainer thomas.hairong@gmail.com -COPY --from=builder /app/dist /html +COPY dist/ /html