Spaces:
Build error
Build error
| FROM centos/systemd | |
| RUN yum update -y && yum install -y wget tar default-jre | |
| RUN wget -qO- https://raw.githubusercontent.com/mcsmanager/Script/master/setup.sh | bash | |
| RUN ls /opt/mcsmanager/web && \ | |
| cp /opt/mcsmanager/web/config.yml /opt/mcsmanager/web/config_backup.yml && \ | |
| sed -i '/^[[:space:]#]*$/d' /opt/mcsmanager/web/config.yml && \ | |
| sed -i 's/port: 23333/port: 7860/' /opt/mcsmanager/web/config.yml | |
| RUN yum install -y epel-release | |
| RUN yum install -y python3 python3-pip | |
| RUN pip3 install docker-systemctl-replacement | |
| CMD ["/usr/bin/python3", "/usr/local/bin/docker-systemctl-replacement.py", "bash", "-c", "/usr/sbin/init && systemctl start mcsm-web mcsm-daemon"] | |