From 8ec873f0099bfe6811dafb82d74bdc49ea3563dd Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 20 Dec 2021 23:55:59 +0100 Subject: [PATCH] Run composer install after downloading --- php_fpm/Dockerfile | 2 +- php_fpm/entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/php_fpm/Dockerfile b/php_fpm/Dockerfile index f5be59c..0fa7528 100644 --- a/php_fpm/Dockerfile +++ b/php_fpm/Dockerfile @@ -3,7 +3,7 @@ FROM php:${PHP_VERSION}-fpm-alpine ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && \ - install-php-extensions gd pdo_mysql mysqli zip exif + install-php-extensions @composer gd pdo_mysql mysqli zip exif ENV WWW_DATA_UID=33 WWW_DATA_GID=33 diff --git a/php_fpm/entrypoint.sh b/php_fpm/entrypoint.sh index 0bca634..f4883cf 100644 --- a/php_fpm/entrypoint.sh +++ b/php_fpm/entrypoint.sh @@ -65,8 +65,9 @@ else LICENSE.txt \ SECURITY.md \ phpstan.neon + composer install # fix permissions - chown -R www-data:www-data /data + chown -R www-data:www-data . find . -type d -exec chmod 750 {} \; find . -type f -exec chmod 640 {} \; set +x