Closed pablorq closed 4 years ago
I use the following in my gitlab ci yml
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
- apk add libwebp-dev libjpeg-turbo-dev libpng-dev libxpm-dev freetype-dev
- docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf
- NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)
- docker-php-ext-install -j${NPROC} gd
Hi,
I already found another way that seems to work:
docker-compose exec php apk add --no-cache freetype-dev
docker-compose exec php docker-php-ext-configure gd --with-gd --with-png-dir --with-zlib-dir --with-freetype-dir
docker-compose exec php docker-php-ext-install gd
...your way seems to be better!
Hi,
I'm trying to use an laravel app, but it uses the gd extension.
Is there any way to install it?
Regards.