Skip to content

Commit 78bd118

Browse files
geroplona-agent
andcommitted
chore: install PHP 8.5 extensions for tool-nginx
php-all-dev installs all PHP versions including 8.5, but extension metapackages only install for 8.4. Since alternatives selects 8.5 as default, explicitly install extensions for 8.5 to fix missing curl module. Co-authored-by: Ona <no-reply@ona.com>
1 parent 6040dbc commit 78bd118

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

chunks/tool-nginx/Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM ${base}
44
USER root
55

66
# Dazzle does not rebuild a layer until one of its lines are changed. Increase this counter to rebuild this layer.
7-
ENV TRIGGER_REBUILD=2
7+
ENV TRIGGER_REBUILD=4
88

99
# Install composer
1010
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
@@ -34,6 +34,18 @@ RUN for _ppa in 'ppa:ondrej/php' 'ppa:ondrej/apache2' 'ppa:ondrej/nginx'; do add
3434
php-tokenizer \
3535
php-xml \
3636
php-zip \
37+
# php-all-dev installs PHP 8.5, but metapackages only install extensions for 8.4, so explicitly install 8.5 extensions
38+
php8.5-bcmath \
39+
php8.5-curl \
40+
php8.5-fpm \
41+
php8.5-gd \
42+
php8.5-intl \
43+
php8.5-mbstring \
44+
php8.5-mysql \
45+
php8.5-pgsql \
46+
php8.5-sqlite3 \
47+
php8.5-xml \
48+
php8.5-zip \
3749
&& mkdir -p /var/run/nginx \
3850
&& ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load \
3951
&& chown -R gitpod:gitpod /etc/apache2 /var/run/apache2 /var/lock/apache2 /var/log/apache2 \

0 commit comments

Comments
 (0)