From 4929c413611af8fe6138c14efb0f96a5bc422d5b Mon Sep 17 00:00:00 2001 From: thomas Date: Tue, 7 Jun 2022 10:29:21 +0800 Subject: [PATCH] =?UTF-8?q?build:=20:building=5Fconstruction:=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=9E=84=E5=BB=BA=E6=96=B9=E5=BC=8F=EF=BC=8C=E4=BB=8E?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E6=9E=84=E5=BB=BA=E5=90=8E=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?dist=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 - .gitignore | 1 - Dockerfile | 18 +++++++++++------- 3 files changed, 11 insertions(+), 9 deletions(-) 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