lazytong commited on
Commit
628d645
·
1 Parent(s): 3a5f0a7
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -1,11 +1,10 @@
1
  FROM node:14-slim
2
- ARG INSTALL_PATH=/opt/docker-mcsm
3
  ENV TZ=Asia/Shanghai
4
  ENV PORT=7860
5
  RUN apt update && apt install -y git
6
- RUN git clone --single-branch -b master --depth 1 https://gitee.com/MCSManager/MCSManager-Web-Production $INSTALL_PATH/releases/web
7
- RUN cd $INSTALL_PATH/releases/web && npm i --production --registry=https://registry.npmmirror.com
8
- RUN git clone --single-branch -b master --depth 1 https://gitee.com/MCSManager/MCSManager-Daemon-Production $INSTALL_PATH/releases/daemon
9
- RUN cd $INSTALL_PATH/releases/daemon && npm i --production --registry=https://registry.npmmirror.com
10
- WORKDIR $INSTALL_PATH/releases/daemon
11
- CMD node app.js & cd $INSTALL_PATH/releases/web && node app.js
 
1
  FROM node:14-slim
 
2
  ENV TZ=Asia/Shanghai
3
  ENV PORT=7860
4
  RUN apt update && apt install -y git
5
+ RUN git clone --single-branch -b master --depth 1 https://gitee.com/MCSManager/MCSManager-Web-Production /opt/mcsmanager/releases/web
6
+ RUN cd /opt/mcsmanager/releases/web && npm i --production --registry=https://registry.npmmirror.com
7
+ RUN git clone --single-branch -b master --depth 1 https://gitee.com/MCSManager/MCSManager-Daemon-Production /opt/mcsmanager/releases/daemon
8
+ RUN cd /opt/mcsmanager/releases/daemon && npm i --production --registry=https://registry.npmmirror.com
9
+ WORKDIR /opt/mcsmanager/releases/daemon
10
+ CMD node app.js & cd /opt/mcsmanager/releases/web && node app.js