Sign inSign up

watafactory/apache_php_74

By watafactory

•Updated almost 5 years ago

Apache with PHP 7.4 with common libraries installed

Image
0

10K+

watafactory/apache_php_74 repository overview

An apache server with PHP 7.4 and the common libraries installed.

To allow debugging add this line to your Dockerfile:

COPY xdebug.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini"

xdebug.ini file:

zend_extension=xdebug
[xdebug]
xdebug.mode=develop,debug
xdebug.client_port=9003
xdebug.client_host=host.docker.internal
xdebug.start_with_request=trigger
xdebug.discover_client_host = 1

The following Dockerfile was used in version 1.0.0:

FROM php:7.4-apache


RUN a2enmod proxy_fcgi ssl rewrite proxy proxy_balancer proxy_http proxy_ajp

RUN apt-get update && apt-get install -y libpq-dev
RUN apt-get install -y zlib1g-dev
RUN docker-php-ext-install mysqli && docker-php-ext-install pdo && docker-php-ext-install pdo_mysql

RUN apt-get update && apt-get install -y libsodium23 libsodium-dev
RUN docker-php-ext-install sodium
RUN apt-get update && apt-get install -y libxslt1-dev
RUN docker-php-ext-install xsl


RUN apt-get install -y libmcrypt-dev git \
    zip unzip libmagickwand-dev --no-install-recommends

RUN apt-get install -y \
        libzip-dev \
        zip \
  && docker-php-ext-install zip \
  && docker-php-ext-install gd

RUN pecl install xdebug \
    && docker-php-ext-enable xdebug \
    && docker-php-ext-enable mysqli
RUN apt-get update && apt-get install -y gnupg2
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn
RUN apt-get update \
    && apt-get install -y libxslt-dev \
    && docker-php-ext-install xsl

RUN apt-get update \
    && apt-get install -y sloccount

RUN apt-get update && \
    apt-get install -y \
        libc-client-dev libkrb5-dev && \
    rm -r /var/lib/apt/lists/*

RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
    docker-php-ext-install -j$(nproc) imap

RUN docker-php-ext-install bcmath
RUN pecl install mcrypt-1.0.3
RUN docker-php-ext-enable mcrypt

RUN docker-php-ext-install soap

RUN rm -rf /var/lib/apt/lists/*
RUN printf "\n" | pecl install imagick
RUN docker-php-ext-enable imagick

# Composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
    && php composer-setup.php --install-dir=/usr/local/bin/ --filename=composer \
    && rm composer-setup.php

Tag summary

Content type

Image

Digest

Size

275.1 MB

Last updated

almost 5 years ago

docker pull watafactory/apache_php_74