Spaces:
Build error
Build error
main
Browse files- 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
|
| 7 |
-
RUN cd
|
| 8 |
-
RUN git clone --single-branch -b master --depth 1 https://gitee.com/MCSManager/MCSManager-Daemon-Production
|
| 9 |
-
RUN cd
|
| 10 |
-
WORKDIR
|
| 11 |
-
CMD node app.js & cd
|
|
|
|
| 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
|