From 4990367efa41784767f65395352c2c6a299b204c Mon Sep 17 00:00:00 2001 From: luochuan Date: Sat, 29 Jun 2024 11:15:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20test=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- start.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 12ebc78..8a213ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ COPY . /app EXPOSE 3000 8080 # 启动应用 -ENTRYPOINT [ "sh" ,"start.sh"] +CMD [ "sh" ,"./start.sh"] diff --git a/start.sh b/start.sh index a164908..8e04e61 100644 --- a/start.sh +++ b/start.sh @@ -2,3 +2,5 @@ nohup npm run prod >> server.log 2>&1 & # 客户端启动 nohup npm run serve >> front.log 2>&1 & + +echo '启动成功'