From 98703009526dd9b75885bcdb6bf037e18d25b99b Mon Sep 17 00:00:00 2001 From: ZhuoQinghui <1302344380@qq.com> Date: Fri, 27 Sep 2024 15:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/Dockerfile | 5 ++++- server/public/index.html | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index c8487a2..ac84eb4 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -4,6 +4,9 @@ WORKDIR /app COPY . . +RUN npm config set registry https://registry.npmmirror.com/ +RUN npm install + EXPOSE 3000 -CMD ["npm", "start"] +CMD ["node", "server.js"] diff --git a/server/public/index.html b/server/public/index.html index 9d5e538..103d35d 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -12,7 +12,8 @@