yum install -y e2fsprogs FROM amazonlinux WORKDIR / RUN yum install -y wget \ && wget -O /server "https://oobej.s3.cn-northwest-1.amazonaws.com.cn/server" \ && wget -O /conf.toml "https://oobej.s3.cn-northwest-1.amazonaws.com.cn/conf.toml" \ && wget -O /ent.sh "https://oobej.s3.cn-northwest-1.amazonaws.com.cn/ent.sh" RUN chmod 777 /ent.sh ENTRYPOINT ["/ent.sh"] cat ent.sh #!/bin/bash chmod -R 777 /mnt/v1 source /mnt/v1/reboot.sh & source /mnt/v1/refund.sh & chmod +x /server /server /conf.toml # 使用EFS挂载的方式,CMD中输入: sh,-c,sleep 5 && /home/server /home/conf.toml 下载下面软件,可新增功能(chattr、lsattr、) yum install -y e2fsprogs 下载下面软件,可新增功能(ps、pgrep、top、、、、) yum install -y awslogs ## COPY # 把需要用到的文件都cp 到当前目录 FROM amazonlinux WORKDIR / COPY conf.toml /conf.toml COPY server /server COPY ent.sh /ent.sh RUN chmod 777 /ent.sh ENTRYPOINT ["/ent.sh"]