Spaces:
Build error
Build error
main
Browse files- Dockerfile +7 -9
Dockerfile
CHANGED
|
@@ -1,11 +1,9 @@
|
|
| 1 |
-
FROM centos
|
| 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
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
&& chmod +x /entrypoint.sh
|
| 11 |
-
CMD ["/entrypoint.sh"]
|
|
|
|
| 1 |
+
FROM centos
|
| 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 cp /opt/mcsmanager/web/config.yml /opt/mcsmanager/web/config_backup.yml && \
|
| 5 |
+
sed -i 's/port: 23333/port: 7860/' /opt/mcsmanager/web/config.yml
|
| 6 |
+
RUN yum install -y epel-release
|
| 7 |
+
RUN yum install -y python3 python3-pip
|
| 8 |
+
RUN pip3 install docker-systemctl-replacement
|
| 9 |
+
CMD ["/usr/bin/python3", "/usr/local/bin/docker-systemctl-replacement.py", "bash", "-c", "/usr/sbin/init && systemctl start mcsm-web mcsm-daemon"]
|
|
|
|
|
|