From 406d098172e37f5b24c5df3cc1f704f848b75f0b Mon Sep 17 00:00:00 2001 From: Evgenij Date: Sun, 26 Jan 2020 23:18:15 +0300 Subject: [PATCH 1/3] Update Dockerfile Generation does not work due to: iconv(): Wrong charset, conversion from `UTF-8' to `UTF-8//IGNORE' is not allowed Installing the library gnu-libiconv will solve the problem --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 46654b42..a736bf4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,10 @@ RUN touch database/database.sqlite && \ chmod -R 775 storage/logs/ && \ chmod -R 775 bootstrap/cache/ +# Fix for https://github.com/bytefury/crater/issues/69 +RUN apk add --no-cache gnu-libiconv +ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php + EXPOSE 9000 CMD ["php-fpm", "--nodaemonize"] - From ee14070a7bbad29aefdfdb500d0d21c64fcdfcc0 Mon Sep 17 00:00:00 2001 From: Evgenij Date: Mon, 27 Jan 2020 22:37:41 +0300 Subject: [PATCH 2/3] Update Dockerfile slight change --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a736bf4e..39547c11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -47,8 +49,6 @@ RUN touch database/database.sqlite && \ chmod -R 775 bootstrap/cache/ # Fix for https://github.com/bytefury/crater/issues/69 -RUN apk add --no-cache gnu-libiconv -ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php EXPOSE 9000 From 92f1f196bba6421863f8a2a67070823f53ba7b87 Mon Sep 17 00:00:00 2001 From: Evgenij Date: Mon, 27 Jan 2020 22:38:47 +0300 Subject: [PATCH 3/3] Update Dockerfile --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 39547c11..28c46c56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,8 +48,6 @@ RUN touch database/database.sqlite && \ chmod -R 775 storage/logs/ && \ chmod -R 775 bootstrap/cache/ -# Fix for https://github.com/bytefury/crater/issues/69 - EXPOSE 9000 CMD ["php-fpm", "--nodaemonize"]