Update Dockerfile to use yum for cleaning and fixing CentOS mirror source

This commit is contained in:
xiao 2024-12-04 12:37:05 +08:00
parent 781e5ce202
commit 537c7d2bd6

View File

@ -38,8 +38,8 @@ RUN curl -sSO https://download.bt.cn/install/install_panel.sh \
&& rm -rf /www/server/data/* \
&& echo "docker_bt_d11" > /www/server/panel/data/o.pl \
&& echo '["memuA", "memuAsite", "memuAdatabase", "memuAcontrol", "memuAfiles", "memuAlogs", "memuAxterm", "memuAcrontab", "memuAsoft", "memuAconfig", "dologin", "memu_btwaf", "memuAssl"]' > /www/server/panel/config/show_menu.json \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* \
&& yum clean all \
&& rm -rf /var/cache/yum \
&& chmod +x /bt.sh \
&& chmod +x /init_mysql.sh