lazytong commited on
Commit
3a5f0a7
·
1 Parent(s): aab4340
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
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