Skip to content

Commit

Permalink
feat: upgrade wordpress docker image to use PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimds committed Oct 14, 2024
1 parent 89c3385 commit e8dd61a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1.27-fpm-alpine
FROM php:8.3.12-fpm-alpine

ENV PATH "$PATH:/var/www/html/vendor/bin"

Expand All @@ -11,12 +11,16 @@ RUN apk update \
&& echo "date.timezone=Europe/London" > /usr/local/etc/php/conf.d/zz-custom.ini \
&& echo "session.autostart=0" >> /usr/local/etc/php/conf.d/zz-custom.ini

# TODO: replace `git clone imagick && pecl install /tmp/imagick/package.xml` with `pecl install imagick`
# when this issue is fixed on their pecl release: https://github.com/Imagick/imagick/issues/640
RUN apk update && apk add --virtual --no-cache \
imagemagick imagemagick-dev linux-headers $PHPIZE_DEPS \
&& pecl install imagick \
imagemagick imagemagick-dev linux-headers git $PHPIZE_DEPS \
&& git clone https://github.com/Imagick/imagick.git /tmp/imagick \
&& pecl install /tmp/imagick/package.xml \
&& pecl install xdebug \
&& docker-php-ext-enable imagick xdebug \
&& apk del imagemagick-dev linux-headers $PHPIZE_DEPS
&& apk del imagemagick-dev linux-headers $PHPIZE_DEPS \
&& rm -rf /tmp/imagick

RUN { \
echo "zend_extension=xdebug"; \
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.6"
services:
nginx:
image: nginx:latest
Expand Down

0 comments on commit e8dd61a

Please sign in to comment.