Spaces:
Build error
Build error
Download Dockerfile from New-Bing/MCSManager: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/New-Bing/MCSManager/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/New-Bing/MCSManager/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/New-Bing/MCSManager/resolve/main/Dockerfile
681 Bytes
| 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"] | |