diff --git a/.dockerignore b/.dockerignore index 438e12d..8cea9cb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,6 @@ .vscode/ .idea/ node_modules/ -dist/ **/*.log LICENSE README.md diff --git a/.gitignore b/.gitignore index cbd7320..8e3a5bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store node_modules/ -dist/ npm-debug.log* yarn-debug.log* yarn-error.log* diff --git a/Dockerfile b/Dockerfile index a87c0d2..813dc90 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 git+https://gitee.com/shihairong/raphael && npm install -ADD . /app -RUN npm run build:prod +#FROM node:12 AS builder +#WORKDIR /app +#ADD package.json /app/ +#RUN npm config set registry https://registry.npmmirror.com && npm install git+https://gitee.com/shihairong/raphael && npm install +#ADD . /app +#RUN npm run build:prod +# +#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 \ No newline at end of file +COPY dist/ /html