Skip to content

Commit 3b9659d

Browse files
authored
Merge pull request #4 from lumenlearning/add-more-extensions-to-pandoc
Add more extensions for pandoc.
2 parents 7a8466b + e35492e commit 3b9659d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

docker/Dockerfile-pandoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
FROM php:8.3-apache
1+
FROM php:8.1-apache
22

33
RUN apt-get update \
44
&& apt-get install -y --no-install-recommends --no-install-suggests \
55
pandoc \
66
jq \
77
awscli \
8-
libpng-dev \
98
&& apt-get clean
109

1110
COPY --chown=www-data:www-data pandoc/* /var/www/html/
@@ -17,7 +16,10 @@ RUN mkdir \
1716
/var/www/datatmp \
1817
/var/www/html/imgs
1918

20-
RUN docker-php-ext-install gd
19+
# Install PHP extensions: gd
20+
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev \
21+
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
22+
&& docker-php-ext-install gd
2123

2224
# enable php production defaults
2325
RUN cp $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini

0 commit comments

Comments
 (0)