Merge pull request #149 from proea/master

Fix for "Empty PDF rendered in Docker #69"
This commit is contained in:
Mohit Panjwani
2020-01-31 00:11:51 +05:30
committed by GitHub

View File

@ -23,9 +23,11 @@ FROM php:7.3.12-fpm-alpine
# Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN apk add --no-cache libpng-dev libxml2-dev oniguruma-dev libzip-dev && \
RUN apk add --no-cache libpng-dev libxml2-dev oniguruma-dev libzip-dev gnu-libiconv && \
docker-php-ext-install bcmath ctype json gd mbstring pdo pdo_mysql tokenizer xml zip
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
# Set container's working dir
WORKDIR /app
@ -49,4 +51,3 @@ RUN touch database/database.sqlite && \
EXPOSE 9000
CMD ["php-fpm", "--nodaemonize"]