From d14aa31fea67d43921739473e0091ffb2a729c43 Mon Sep 17 00:00:00 2001 From: passthem Date: Fri, 27 Mar 2026 03:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Docker=20=E5=AE=B9?= =?UTF-8?q?=E5=99=A8=E6=9E=84=E5=BB=BA=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 2 ++ Dockerfile | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 8d67a86..262d555 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ .DS_Store node_modules dist + +/.drone.yml diff --git a/Dockerfile b/Dockerfile index 32edfb3..651029b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ FROM node:lts-alpine AS runtime WORKDIR /app -COPY . . +COPY package*.json . RUN npm install + +COPY . . + RUN npm run build ENV HOST=0.0.0.0