Skip to content

Commit 05bc550

Browse files
authored
use php 8.1 and add gd and pdo extensions (#7)
1 parent a337225 commit 05bc550

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docker/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
FROM php:8.0-fpm
1+
FROM php:8.1-fpm
22

33
ARG WITH_XDEBUG=true
44

5-
RUN docker-php-ext-install mysqli; \
5+
RUN apt-get update && apt-get install -y \
6+
libfreetype6-dev \
7+
libjpeg62-turbo-dev \
8+
libpng-dev \
9+
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
10+
&& docker-php-ext-install -j$(nproc) gd \
11+
&& docker-php-ext-install mysqli \
12+
&& docker-php-ext-install pdo pdo_mysql; \
613
if [ $WITH_XDEBUG = "true" ] ; then \
714
pecl install xdebug; \
815
fi ;

0 commit comments

Comments
 (0)