因:bt论坛编辑代码内容没有效果,浪费好多时间,以为什么问题,只发重发完整
centos7.6 中docker19.03.01 安装mysql,phpmymin,mail_sys 进入面板,并没有安装 # 安装宝塔邮局
- centos7.6 中docker19.03.01 安装mysql,phpmymin,mail_sys 进入面板,并没有安装 # 安装宝塔邮局
- FROM centos:7
- MAINTAINER bt
- #设置entrypoint和letsencrypt映射到www文件夹下持久化
- COPY entrypoint.sh /entrypoint.sh
- COPY set_default.py /set_default.py
- RUN mkdir -p /www/letsencrypt \
- && ln -s /www/letsencrypt /etc/letsencrypt \
- && rm -f /etc/init.d \
- && mkdir /www/init.d \
- && ln -s /www/init.d /etc/init.d \
- && chmod +x /entrypoint.sh \
- && mkdir /www/wwwroot
- #更新系统 安装依赖 安装宝塔面板
- RUN cd /home \
- && yum -y update \
- && yum -y install wget openssh-server \
- && echo 'Port 1722' > /etc/ssh/sshd_config \
- && wget -O install.sh hxxp://download.bt.cn/install/install_6.0.sh \ # 宝塔不让发网址,请替换
- && echo y | bash install.sh \
- && python /set_default.py \
- && bash /www/server/panel/install/install_soft.sh 0 install nginx 1.17 \
- && bash /www/server/panel/install/install_soft.sh 0 install php 7.2 || echo 'Ignore Error' \
- && bash /www/server/panel/install/install_soft.sh 0 install php 5.6 || echo 'Ignore Error' \
- # 安装所有版本mysql 和 phpmyadmin 、mail_sys
- # 安装宝塔邮局
- && bash /www/server/panel/install/install_soft.sh 0 install mail_sys \
- # 安装数据库
- && bash /www/server/panel/install/install_soft.sh 0 install phpmyadmin 4.4 \
- && bash /www/server/panel/install/install_soft.sh 0 install mysql 5.5 \
- && bash /www/server/panel/install/install_soft.sh 0 install mysql 8.0 \
- && /etc/init.d/bt restart
复制代码
|
|