diff --git a/Php-fpm/Dockerfile b/Php-fpm/Dockerfile index 260c70a..7dfe5a6 100644 --- a/Php-fpm/Dockerfile +++ b/Php-fpm/Dockerfile @@ -4,6 +4,8 @@ FROM php:${CONTAINER_VERSION}-fpm-alpine RUN apk --update --no-cache add build-base \ busybox-extras \ $PHPIZE_DEPS \ + libtool \ + imagemagick \ libjpeg-turbo-dev \ imagemagick-dev \ libxml2-dev \ @@ -20,7 +22,8 @@ RUN apk --update --no-cache add build-base \ jpegoptim \ pngquant \ gifsicle \ - && pecl install imagick + && pecl install imagick \ + && export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ARG PHP_EXTENSION=false diff --git a/Supervisor/Dockerfile b/Supervisor/Dockerfile index 7266e33..f3c0f0b 100644 --- a/Supervisor/Dockerfile +++ b/Supervisor/Dockerfile @@ -4,6 +4,8 @@ FROM php:${CONTAINER_VERSION}-fpm-alpine RUN apk --update --no-cache add build-base \ busybox-extras \ $PHPIZE_DEPS \ + libtool \ + imagemagick \ libjpeg-turbo-dev \ imagemagick-dev \ libxml2-dev \ @@ -20,7 +22,8 @@ RUN apk --update --no-cache add build-base \ jpegoptim \ pngquant \ gifsicle \ - && pecl install imagick + && pecl install imagick \ + && export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ARG PHP_EXTENSION=false diff --git a/Supervisor/config/workers.conf b/Supervisor/config/workers.conf index 99b4203..5beb09f 100644 --- a/Supervisor/config/workers.conf +++ b/Supervisor/config/workers.conf @@ -21,4 +21,11 @@ autostart=true autorestart=true numprocs=1 redirect_stderr=true +stopwaitsecs=3600 +[program:blog_horizon] +process_name=%(program_name)s_%(process_num)02d +command=php /var/www/html/blog/artisan horizon +autostart=true +autorestart=true +redirect_stderr=true stopwaitsecs=3600 \ No newline at end of file diff --git a/Workspace/Dockerfile b/Workspace/Dockerfile index 225a12e..43faa50 100644 --- a/Workspace/Dockerfile +++ b/Workspace/Dockerfile @@ -4,6 +4,8 @@ FROM php:${CONTAINER_VERSION}-fpm-alpine RUN apk --update --no-cache add build-base \ busybox-extras \ $PHPIZE_DEPS \ + libtool \ + imagemagick \ libjpeg-turbo-dev \ imagemagick-dev \ libxml2-dev \ @@ -20,7 +22,8 @@ RUN apk --update --no-cache add build-base \ jpegoptim \ pngquant \ gifsicle \ - && pecl install imagick + && pecl install imagick \ + && export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ARG PHP_EXTENSION=false