This commit is contained in:
2025-02-24 22:37:29 +08:00
parent 256248f635
commit ecbb542437
18 changed files with 9071 additions and 47 deletions

View File

@@ -1,16 +1,23 @@
FROM php:8.4-fpm
RUN apt update && \
apt upgrade -y && \
apt install -y --no-install-recommends git unzip 7zip && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN apt update \
&& apt upgrade -y \
&& apt install -y --no-install-recommends \
git \
unzip \
7zip \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
# https://pecl.php.net/package/xdebug
RUN pecl channel-update pecl.php.net && \
pecl install xdebug-3.4.0 unzip && \
mkdir -p /var/log/php
# https://pecl.php.net/package/redis
RUN pecl channel-update pecl.php.net \
&& pecl install \
xdebug-3.4.0 \
unzip \
redis \
&& mkdir -p /var/log/php
COPY --from=composer /usr/bin/composer /usr/local/bin/composer