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 '启动成功'