anchor.diff:    cyrus-sasl-dev \
     libgsasl-dev \
     oniguruma-dev \
  -  openssl \
  -  openssl-dev \
  +  libressl \
  +  libressl-dev \
     supervisor
   
  -RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
  +RUN pecl channel-update pecl.php.net; \
  +    docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
  +
   RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
  -  pecl channel-update pecl.php.net && pecl install memcached-2.2.0 mcrypt-1.0.1 && docker-php-ext-enable memcached \
  +  pecl install memcached-2.2.0 mcrypt-1.0.1 && docker-php-ext-enable memcached \
   ;else \
  -  pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached \
  +  pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached \
   ;fi
   
   # Add a non-root user:
  
positive.code: ARG INSTALL_AMQP=false
  
  RUN if [ ${INSTALL_AMQP} = true ]; then \
      apk del -q openssl openssl-dev && \
      apk --update add -q rabbitmq-c rabbitmq-c-dev && \
      if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
        printf "\n" | pecl install amqp-1.11.0beta; \
  
negative.code: ARG INSTALL_IMAP=false
  
  RUN if [ ${INSTALL_IMAP} = true ]; then \
      apk add --update imap-dev && \
      docker-php-ext-configure imap --with-imap --with-imap-ssl && \
      docker-php-ext-install imap \
  ;fi
  