Spaces:
Build error
Build error
main
Browse files- Dockerfile +11 -12
Dockerfile
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
RUN
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
CMD node app.js & cd /home/mcsmanager/releases/web && node app.js
|
|
|
|
| 1 |
+
FROM centos/systemd
|
| 2 |
+
RUN yum update -y && yum install -y wget tar default-jre
|
| 3 |
+
RUN wget -qO- https://raw.githubusercontent.com/mcsmanager/Script/master/setup.sh | bash
|
| 4 |
+
RUN echo '#!/bin/bash' > /entrypoint.sh \
|
| 5 |
+
&& echo '/usr/sbin/init &' >> /entrypoint.sh \
|
| 6 |
+
&& echo 'sleep 3' >> /entrypoint.sh \
|
| 7 |
+
&& echo 'systemctl start mcsm-web mcsm-daemon' >> /entrypoint.sh \
|
| 8 |
+
&& echo 'sed -i "s/port: 23333/port: 7860/" /opt/mcsmanager/web/config.yml' >> /entrypoint.sh \
|
| 9 |
+
&& echo 'exec /usr/sbin/init' >> /entrypoint.sh \
|
| 10 |
+
&& chmod +x /entrypoint.sh
|
| 11 |
+
CMD ["/entrypoint.sh"]
|
|
|