Skip to content

Commit

Permalink
Update PHP version to 8.3
Browse files Browse the repository at this point in the history
Remove imagick extension, since it has a bug (see Imagick/imagick#641)
  • Loading branch information
andrii-kryvoviaz committed Feb 17, 2024
1 parent 2df5320 commit c57baae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ARG PHP_VERSION=8.3.3

FROM composer:2 as vendor
# Copy composer files
COPY composer.json composer.lock ./
Expand All @@ -6,7 +8,7 @@ COPY composer.json composer.lock ./
RUN composer install --ignore-platform-reqs --no-interaction --no-scripts --prefer-dist


FROM php:8.2-alpine as base
FROM php:${PHP_VERSION}-alpine as base
# Install dependencies
RUN apk update && apk upgrade &&\
apk add --no-cache \
Expand All @@ -24,8 +26,8 @@ RUN apk update && apk upgrade &&\
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf g++ make linux-headers imagemagick-dev curl-dev postgresql-dev icu-dev libpng-dev libmcrypt-dev libjpeg-turbo-dev oniguruma-dev && \
docker-php-ext-configure gd && \
docker-php-ext-install curl intl mysqli pdo_pgsql mbstring gd && \
pecl install mcrypt redis imagick && \
docker-php-ext-enable mcrypt redis imagick && \
pecl install mcrypt redis && \
docker-php-ext-enable mcrypt redis && \
apk del .build-deps

# Copy supervisor config
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"php": ">=8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"runtime/swoole": "^0.3.1",
Expand Down

0 comments on commit c57baae

Please sign in to comment.