From 8dc73bd0980bb48c1c0c37780f006425fa81275f Mon Sep 17 00:00:00 2001 From: thomas Date: Tue, 14 Mar 2023 14:35:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E6=AD=A3=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 - Dockerfile | 18 +++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) 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