From 9be5175b5093383b1b7f1e83f1d56d897ae0009c Mon Sep 17 00:00:00 2001 From: rok Date: Tue, 2 Jul 2019 16:07:25 +0200 Subject: [PATCH] adding amqp --- Dockerfile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1cdf0cc..7130b34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,24 @@ ENV QUEUE_CONNECTION=redis ENV QUEUE_NAME=default ENV LARAVEL_HORIZON=false +RUN apk add --no-cache coreutils sqlite-dev libxml2-dev curl-dev gmp-dev icu-dev libpng-dev jpeg-dev freetype-dev autoconf imagemagick-dev gcc libc-dev libzip-dev rabbitmq-c-dev make libtool \ + && docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include \ + && docker-php-ext-install -j$(nproc) bcmath pdo pdo_mysql pdo_sqlite mbstring json xml zip curl gmp intl gd soap sockets \ + && pecl install imagick \ + && pecl install amqp \ + && docker-php-ext-enable imagick + +ADD https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64 /usr/local/bin/confd + +RUN chmod +x /usr/local/bin/confd \ + && apk add --no-cache sqlite libxml2 curl gmp icu libpng jpeg freetype libzip imagemagick gcc ssmtp rabbitmq-c \ + # Fix alpine iconv problems part 1 + # See https://github.com/docker-library/php/issues/240 + && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community gnu-libiconv \ + && docker-php-ext-enable bcmath pdo pdo_mysql pdo_sqlite mbstring json xml zip curl gmp intl gd imagick soap amqp sockets + # Install pdo if you want to use database queue and install supervisor -RUN docker-php-ext-install bcmath pdo pdo_mysql pcntl posix \ - && pecl install amqp && docker-php-ext-enable amqp \ - && apk add --update supervisor && rm -rf /tmp/* /var/cache/apk/* +RUN apk add --update supervisor && rm -rf /tmp/* /var/cache/apk/* # Define working directory WORKDIR /etc/supervisor/conf.d