From 373c0658c2528e6d9e9c62d6b1f11494c3151737 Mon Sep 17 00:00:00 2001 From: xiao Date: Sat, 2 Nov 2024 13:59:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=BE=E5=BC=83=E6=9E=84=E5=BB=BAphp?= =?UTF-8?q?myadmin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index c98672a..18de05f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN apt install -y \ diffutils unzip tar libbz2-dev libncurses5 libncurses5-dev libtool libevent-dev libssl-dev libsasl2-dev \ libltdl-dev zlib1g-dev libglib2.0-0 libglib2.0-dev libkrb5-dev libpq-dev libpq5 gettext libcap-dev \ libc-client2007e-dev psmisc patch git e2fsprogs libxslt1-dev xz-utils libgd3 libwebp-dev libvpx-dev \ - libfreetype6-dev libjpeg62-turbo libjpeg62-turbo-dev iptables firewalld + libfreetype6-dev libjpeg62-turbo libjpeg62-turbo-dev iptables # 配置区域设置 RUN locale-gen en_US.UTF-8 @@ -44,16 +44,21 @@ RUN curl -sSO https://download.bt.cn/install/install_panel.sh \ # 创建目录 RUN mkdir -p /lnmp -# 安装 Nginx 1.27, PHP 8.3, MySQL 8.0 和 phpMyAdmin 5.2 +# 安装 lnmp 环境 +# 创建目录 +RUN mkdir -p /lnmp + +# 安装 Nginx 1.27 RUN curl -o /lnmp/nginx.sh https://download.bt.cn/install/3/nginx.sh \ - && sh /lnmp/nginx.sh install 1.27 \ - && curl -o /lnmp/php.sh https://download.bt.cn/install/4/php.sh \ - && sh /lnmp/php.sh install 8.3 \ - && curl -o /lnmp/mysql.sh https://download.bt.cn/install/4/mysql.sh \ - && sh /lnmp/mysql.sh install 8.0 \ - && service nginx start \ - && curl -o /lnmp/phpmyadmin.sh https://download.bt.cn/install/4/phpmyadmin.sh \ - && sh /lnmp/phpmyadmin.sh install 5.2 + && sh /lnmp/nginx.sh install 1.27 + +# 安装 PHP 8.3 +RUN curl -o /lnmp/php.sh https://download.bt.cn/install/4/php.sh \ + && sh /lnmp/php.sh install 8.3 + +# 安装 MySQL 8.0 +RUN curl -o /lnmp/mysql.sh https://download.bt.cn/install/4/mysql.sh \ + && sh /lnmp/mysql.sh install 8.0 # 清理安装包 RUN rm -rf /lnmp \