Skip to content

Commit

Permalink
fix: Adjust base images to supported versions
Browse files Browse the repository at this point in the history
The first version of Nextcloud supporting PHP 8.2 was 26 which requires Bullseye as Debian version.
The first version of Nextcloud supporting PHP 8.3 was 28 which requires Bookwork as Debian version.

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jun 25, 2024
1 parent bbd50a3 commit 7bee19a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions php8.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM debian:buster
FROM debian:bullseye
RUN apt-get update && apt-get install -y wget gnupg2 libzip4 apt-transport-https lsb-release ca-certificates && \
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
apt-get update && apt-get install -y php8.2-intl php8.2-gd git curl \
php8.2-cli php8.2-curl php8.2-pgsql php8.2-ldap \
php8.2-sqlite php8.2-mysql php8.2-zip php8.2-xml \
php8.2-redis php8.2-imagick php8.2-xdebug php8.2-apcu \
php8.2-mbstring make libmagickcore-6.q16-2-extra && \
php8.2-mbstring make libmagickcore-6.q16-6-extra && \
apt-get autoremove -y && apt-get autoclean && apt-get clean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*

Expand Down
6 changes: 3 additions & 3 deletions php8.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
FROM debian:buster
FROM debian:bookworm
RUN apt-get update && apt-get install -y wget gnupg2 libzip4 apt-transport-https lsb-release ca-certificates && \
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
apt-get update && apt-get install -y php8.3-intl php8.3-gd git curl \
php8.3-cli php8.3-curl php8.3-pgsql php8.3-ldap \
php8.3-sqlite php8.3-mysql php8.3-zip php8.3-xml \
php8.3-redis php8.3-imagick php8.3-xdebug php8.3-apcu \
php8.3-mbstring make libmagickcore-6.q16-2-extra && \
php8.3-mbstring make libmagickcore-6.q16-6-extra && \
apt-get autoremove -y && apt-get autoclean && apt-get clean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*

RUN phpenmod zip intl gd systemd
RUN curl -O -L https://phar.phpunit.de/phpunit-9.5.28.phar \
&& chmod +x phpunit-9.5.28.phar \
&& mv phpunit-9.5.28.phar /usr/local/bin/phpunit
RUN curl -O -L https://getcomposer.org/download/2.5.1/composer.phar \
RUN curl -O -L https://getcomposer.org/download/2.7.7/composer.phar \
&& chmod +x composer.phar \
&& mv composer.phar /usr/local/bin/composer

Expand Down

0 comments on commit 7bee19a

Please sign in to comment.