From 6c8adbc19570f17b2a799d1a20ba81d7daead468 Mon Sep 17 00:00:00 2001 From: mintalicious Date: Tue, 5 Mar 2019 04:08:40 +0100 Subject: [PATCH] Add ghostscript to php worker (#2035) * Update docker-compose.yml * Update Dockerfile * Update env-example --- docker-compose.yml | 1 + env-example | 1 + php-worker/Dockerfile | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index e7aff2a..91e088f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -198,6 +198,7 @@ services: - INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE} - INSTALL_MYSQL_CLIENT=${PHP_WORKER_INSTALL_MYSQL_CLIENT} - INSTALL_AMQP=${PHP_WORKER_INSTALL_AMQP} + - INSTALL_GHOSTSCRIPT=${PHP_WORKER_INSTALL_GHOSTSCRIPT} - PUID=${PHP_WORKER_PUID} - PGID=${PHP_WORKER_PGID} volumes: diff --git a/env-example b/env-example index 228bc81..7054334 100644 --- a/env-example +++ b/env-example @@ -185,6 +185,7 @@ PHP_WORKER_INSTALL_SOAP=false PHP_WORKER_INSTALL_ZIP_ARCHIVE=false PHP_WORKER_INSTALL_MYSQL_CLIENT=false PHP_WORKER_INSTALL_AMQP=false +PHP_WORKER_INSTALL_GHOSTSCRIPT=false PHP_WORKER_PUID=1000 PHP_WORKER_PGID=1000 diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index 25bcf83..b268b7a 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -93,6 +93,10 @@ RUN if [ $INSTALL_PHALCON = true ]; then \ && rm -rf /tmp/cphalcon* \ ;fi +RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \ + apk --update add ghostscript \ +;fi + RUN rm /var/cache/apk/* \ && mkdir -p /var/www