Skip to content

Commit f7fb511

Browse files
committed
Add gd image extension
- From https://www.reddit.com/r/PHP/comments/6edemg/docker_web_stack_a_lightweight_php_71_mariadb/di9omry/ - Ran into some issues wherein png.h was missing, so I had to install the libpng-dev libraries
1 parent 5b94ca9 commit f7fb511

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/php/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ RUN apt-get update && apt-get install -y \
66
libxml2-dev \
77
libssl-dev \
88
libpq-dev \
9-
libbz2-dev
9+
libbz2-dev \
10+
libpng-dev
1011

1112
# extensions
1213
RUN docker-php-ext-install opcache && \
@@ -15,6 +16,7 @@ RUN docker-php-ext-install opcache && \
1516
docker-php-ext-install iconv && \
1617
docker-php-ext-install calendar && \
1718
docker-php-ext-install dom && \
19+
docker-php-ext-install gd && \
1820
docker-php-ext-install mbstring && \
1921
docker-php-ext-install mcrypt && \
2022
docker-php-ext-install mysqli && \

0 commit comments

Comments
 (0)