From aa35d46988b34913157a883908907da5740f136f Mon Sep 17 00:00:00 2001 From: Cherry Sakura Date: Fri, 27 Oct 2023 02:31:07 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a2de848..136666b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,13 @@ RUN echo '#!/bin/bash\nphp artisan "$@"' > /usr/bin/art && \ chmod +x /usr/bin/art -RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free" > /etc/apt/sources.list && \ - echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list && \ - echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list && \ - echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free" >> /etc/apt/sources.list +#RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \ +# echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ +# echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ +# echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list + +RUN echo "https://mirrors.tuna.tsinghua.edu.cn/debian" > /etc/apt/mirrors/debian.list && \ + echo "https://mirrors.tuna.tsinghua.edu.cn/debian-security" > /etc/apt/mirrors/debian-security.list RUN apt update RUN apt install wget lsb-release unzip -y @@ -15,8 +18,9 @@ RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg RUN sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' RUN apt update -RUN apt install -y php8.2-cli php8.2-bcmath php8.2-bz2 php8.2-curl php8.2-redis php8.2-mongodb php8.2-pgsql php8.2-intl php8.2-mbstring php8.2-zip php8.2-gd php8.2-dom php8.2-mysql php8.2-memcached php8.2-dev php-pear +RUN apt install -y php8.2-cli php8.2-bcmath php8.2-bz2 php8.2-curl php8.2-redis php8.2-mongodb php8.2-pgsql php8.2-intl php8.2-mbstring php8.2-zip php8.2-gd php8.2-dom php8.2-mysql php8.2-memcached php8.2-dev php-pear libz-dev +RUN pecl channel-update pecl.php.net RUN pecl install grpc RUN echo "output_buffering = On" >> /etc/php/8.2/cli/php.ini