Images

We provide a base image for you to build from. We push these images to Docker Hub and have it trigger to auto build whenver the main PHP repository is updated from Docker, ensuring you have the most up to date images possible.

We provide two types of images for each version of PHP:

  1. apache image - which is used to serve your web requests
  2. queue image - which is used to run your queue and does not expose a port

7.3-apache-postgres

Dockerfile

FROM php:7.3-apache-stretch
RUN apt-get update && \
    apt-get install -y --no-install-recommends git zip unzip zlib1g-dev \
    libpng-dev libjpeg-dev libpq-dev libzip-dev libicu-dev libmagickwand-dev && \
    pecl install imagick
RUN docker-php-source extract && \
    docker-php-ext-install pdo pdo_pgsql intl zip bcmath gd && \
    docker-php-ext-enable imagick && docker-php-source delete
RUN sed -ri -e 's!/var/www/!/var/www/html/web!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf && \
    sed -ri -e 's!/var/www/html!/var/www/html/web!g' /etc/apache2/sites-available/*.conf && a2enmod rewrite
RUN if [ "$ENV" == "production" ]; then mv $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini; else mv $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini; fi
COPY 000-default.conf /etc/apache2/sites-enabled
RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/g' $PHP_INI_DIR/php.ini
RUN sed -i 's/memory_limit = 128M/memory_limit = 256M/g' $PHP_INI_DIR/php.ini
RUN sed -i 's/max_execution_time = 30/max_execution_time = 120/g' $PHP_INI_DIR/php.ini

Source File

7.3-queue-postgres

Dockerfile

FROM php:7.3-cli-stretch
RUN apt-get update && \
    apt-get install -y --no-install-recommends git zip unzip zlib1g-dev \
    libpng-dev libjpeg-dev libpq-dev libzip-dev libicu-dev libmagickwand-dev && \
    pecl install imagick
RUN docker-php-source extract && \
    docker-php-ext-install pdo pdo_pgsql intl zip bcmath gd && \
    docker-php-ext-enable imagick && docker-php-source delete
RUN mkdir /var/www/html
RUN if [ "$ENV" == "production" ]; then mv $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini; else mv $PHP_INI_DIR/php.ini-development $PHP_INI_DIR/php.ini; fi
RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/g' $PHP_INI_DIR/php.ini
RUN sed -i 's/memory_limit = 128M/memory_limit = 256M/g' $PHP_INI_DIR/php.ini
RUN sed -i 's/max_execution_time = 30/max_execution_time = 120/g' $PHP_INI_DIR/php.ini

Source File

7.3-apache-mysql

Dockerfile

Not found: /opt/build/repo/php7.3/apache-mysql.Dockerfile

Source File

7.3-queue-mysql

Dockerfile

Not found: /opt/build/repo/php7.3/queue-mysql.Dockerfile

Source File