更新 Dockerfile
This commit is contained in:
parent
5859f3fa59
commit
aa35d46988
14
Dockerfile
14
Dockerfile
@ -4,10 +4,13 @@ RUN echo '#!/bin/bash\nphp artisan "$@"' > /usr/bin/art && \
|
|||||||
chmod +x /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 && \
|
#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/ bullseye-updates main contrib non-free" >> /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/ bullseye-backports main contrib non-free" >> /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 bullseye-security main contrib non-free" >> /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 update
|
||||||
RUN apt install wget lsb-release unzip -y
|
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 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 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 pecl install grpc
|
||||||
|
|
||||||
RUN echo "output_buffering = On" >> /etc/php/8.2/cli/php.ini
|
RUN echo "output_buffering = On" >> /etc/php/8.2/cli/php.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user