feat: 启动方式

master
luochuan 5 months ago
parent 9d35977ae3
commit 91af6379e8

@ -11,5 +11,4 @@ COPY . /app
EXPOSE 3000 8080
# 启动应用
# 服务端
CMD nohup sh -c 'npm run prod && npm run serve'
ENTRYPOINT [ "sh" ,"start.sh"]

@ -0,0 +1,4 @@
# 服务端启动
nohup npm run prod >> server.log 2>&1 &
# 客户端启动
nohup npm run serve >> front.log 2>&1 &
Loading…
Cancel
Save