From e410696a36f6b3cb81144d76afafa2710e3773da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo?= Date: Mon, 14 Dec 2020 22:42:43 -0300 Subject: [PATCH] Fixed #8884: Fixed alpine image build (#8885) * Fixed #8884: update alpine image dependencies, fix permission error in vendor folder and laravel.log file * Fixed #8884: Removes unnecessary changes to fix alpine image build * Fixed #8884: Removes unnecessary changes to fix alpine image build * Fixed #8884: Fix typo --- Dockerfile.alpine | 4 +++- docker/entrypoint_alpine.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile.alpine b/Dockerfile.alpine index f00650daf6..6f89e518f0 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,4 +1,4 @@ -FROM alpine:3.8 +FROM alpine:3.12 # Apache + PHP RUN apk add --update --no-cache \ apache2 \ @@ -23,6 +23,8 @@ RUN apk add --update --no-cache \ php7-fileinfo \ php7-simplexml \ php7-session \ + php7-dom \ + php7-xmlwriter \ curl \ wget \ vim \ diff --git a/docker/entrypoint_alpine.sh b/docker/entrypoint_alpine.sh index 6ea96189d4..cd0929885a 100644 --- a/docker/entrypoint_alpine.sh +++ b/docker/entrypoint_alpine.sh @@ -49,5 +49,7 @@ php artisan migrate --force php artisan config:clear php artisan config:cache +chown -R apache:root /var/www/html/storage/logs/laravel.log + export APACHE_LOG_DIR=/var/log/apache2 exec httpd -DNO_DETACH < /dev/null