lazytong commited on
Commit
e00beed
·
1 Parent(s): df30726

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,9 +1,11 @@
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 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"]
 
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 ls /opt/mcsmanager/web && \
5
+ cp /opt/mcsmanager/web/config.yml /opt/mcsmanager/web/config_backup.yml && \
6
+ sed -i '/^[[:space:]#]*$/d' /opt/mcsmanager/web/config.yml && \
7
  sed -i 's/port: 23333/port: 7860/' /opt/mcsmanager/web/config.yml
8
  RUN yum install -y epel-release
9
  RUN yum install -y python3 python3-pip
10
  RUN pip3 install docker-systemctl-replacement
11
+ CMD ["/usr/bin/python3", "/usr/local/bin/docker-systemctl-replacement.py", "bash", "-c", "/usr/sbin/init && systemctl start mcsm-web mcsm-daemon"]