Skip to content

Commit 37b94e2

Browse files
author
Miguel Ribeiro
committed
attempt to fix build
1 parent 8101855 commit 37b94e2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ FROM php:8.2-fpm-alpine
55
WORKDIR /var/www/html
66

77
# Update packages and install dependencies
8-
RUN apk upgrade --no-cache && \
9-
apk add --no-cache shadow sqlite-dev libpng libpng-dev libjpeg-turbo libjpeg-turbo-dev freetype freetype-dev curl autoconf libgomp icu-dev icu-data-full nginx dcron tzdata imagemagick imagemagick-dev libzip-dev sqlite libwebp-dev && \
8+
RUN apk update && apk upgrade --no-cache && \
9+
apk add --no-cache shadow sqlite-dev libpng libpng-dev libjpeg-turbo libjpeg-turbo-dev freetype freetype-dev \
10+
curl autoconf libgomp icu-dev icu-data-full nginx dcron tzdata imagemagick imagemagick-dev libzip-dev \
11+
sqlite libwebp-dev zlib-dev && \
12+
apk add --no-cache --virtual .build-deps build-base $PHPIZE_DEPS && \
1013
docker-php-ext-install pdo pdo_sqlite calendar && \
1114
docker-php-ext-enable pdo pdo_sqlite && \
1215
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp && \
1316
docker-php-ext-install -j$(nproc) gd intl zip && \
14-
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \
1517
pecl install imagick && \
1618
docker-php-ext-enable imagick && \
1719
apk del .build-deps
@@ -43,3 +45,4 @@ ARG SOFTWARE_VERSION=1.20.0
4345

4446
# Start both PHP-FPM, Nginx
4547
CMD ["sh", "-c", "/var/www/html/startup.sh"]
48+

0 commit comments

Comments
 (0)