From 8a217df0a3b1eda62eb6a4be7b758e8d8bf135f1 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 10 Mar 2020 20:58:31 +0100 Subject: [PATCH] Fixed captcha issues in the docker environment (#623). --- docker/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2052900e..0d60a362 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -5,6 +5,15 @@ ENV PROJECT_DIR=/var/www/html \ RUN docker-php-ext-install mysqli gettext +RUN apt-get update -y && apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev \ + libfreetype6-dev + +RUN 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 + +RUN docker-php-ext-install gd + COPY ./src $PROJECT_DIR COPY docker-entrypoint.sh /docker-entrypoint.sh