Skip to content

Commit

Permalink
Fix Image rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuniraju4444 committed Apr 30, 2020
1 parent e0e63cb commit 0cb3941
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand Down
5 changes: 4 additions & 1 deletion Supervisor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand Down
7 changes: 7 additions & 0 deletions Supervisor/config/workers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion Workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand Down

0 comments on commit 0cb3941

Please sign in to comment.