改进
This commit is contained in:
parent
aa622e944e
commit
0c534d9cfc
26
Dockerfile
26
Dockerfile
@ -3,20 +3,20 @@ FROM debian:12-slim
|
||||
|
||||
RUN echo '#!/bin/bash\nphp artisan "$@"' > /usr/bin/art && \
|
||||
chmod +x /usr/bin/art && \
|
||||
DEBIAN_FRONTEND=noninteractive 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 && \
|
||||
rm -rf /etc/apt/sources.list.d/debian.sources && \
|
||||
# DEBIAN_FRONTEND=noninteractive 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 && \
|
||||
# rm -rf /etc/apt/sources.list.d/debian.sources && \
|
||||
apt update && \
|
||||
apt install -y --no-install-recommends wget lsb-release unzip ca-certificates supervisor && \
|
||||
apt install -y --no-install-recommends wget curl lsb-release unzip ca-certificates && \
|
||||
wget --no-check-certificate -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
|
||||
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' && \
|
||||
apt update && \
|
||||
apt install -y --no-install-recommends libz-dev build-essential php8.3-cli php8.3-bcmath php8.3-bz2 php8.3-curl php8.3-redis php8.3-mongodb php8.3-pgsql php8.3-intl php8.3-mbstring php8.3-zip php8.3-gd php8.3-dom php8.3-mysql php8.3-dev php8.3-sqlite3 php-pear php8.3-memcached supervisor
|
||||
apt install -y --no-install-recommends libz-dev build-essential php8.3-cli php8.3-bcmath php8.3-bz2 php8.3-curl php8.3-redis php8.3-mongodb php8.3-pgsql php8.3-intl php8.3-mbstring php8.3-zip php8.3-gd php8.3-dom php8.3-mysql php8.3-dev php8.3-sqlite3 php-pear php8.3-memcached
|
||||
|
||||
RUN pecl channel-update pecl.php.net && MAKEFLAGS="-j $(nproc)" pecl install grpc && pecl install swoole && strip --strip-debug /usr/lib/php/*/*.so && \
|
||||
apt autoremove --purge -y php8.3-dev php-pear build-essential libz-dev && \
|
||||
RUN pecl channel-update pecl.php.net && MAKEFLAGS="-j $(nproc)" pecl install grpc && pecl install openswoole && strip --strip-debug /usr/lib/php/*/*.so && \
|
||||
apt autoremove --purge -y php8.3-dev php-pear build-essential libz-dev lsb-release && \
|
||||
apt-get clean autoclean -y && \
|
||||
apt-get autoremove -y && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
@ -25,10 +25,6 @@ RUN pecl channel-update pecl.php.net && MAKEFLAGS="-j $(nproc)" pecl install gr
|
||||
chmod +x /usr/bin/composer && \
|
||||
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
||||
|
||||
RUN rm -rf /tmp/*
|
||||
|
||||
COPY php.ini /etc/php/8.3/cli/conf.d/99-custom.ini
|
||||
|
||||
# Setup roadrunner
|
||||
RUN wget "http://192.168.81.102/roadrunner-2023.3.8-linux-amd64.deb" -O rr.deb && \
|
||||
dpkg -i rr.deb && \
|
||||
rm -rf rr.deb
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user