2019-06-01 11:25:01 +02:00
|
|
|
FROM php:7-apache
|
2018-06-23 16:51:48 +02:00
|
|
|
|
2019-06-01 11:25:01 +02:00
|
|
|
ENV APACHE_DOCUMENT_ROOT=/app
|
2018-06-23 16:51:48 +02:00
|
|
|
|
2019-06-01 11:25:01 +02:00
|
|
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
2020-02-26 22:16:46 +01:00
|
|
|
&& apt-get --yes update && apt-get --yes install libxml2-dev zlib1g-dev libmemcached-dev \
|
2019-06-01 11:25:01 +02:00
|
|
|
&& docker-php-ext-install -j$(nproc) simplexml \
|
|
|
|
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
2019-11-01 16:43:14 +01:00
|
|
|
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf \
|
|
|
|
&& sed -ri -e 's/(MinProtocol\s*=\s*)TLSv1\.2/\1None/' /etc/ssl/openssl.cnf \
|
|
|
|
&& sed -ri -e 's/(CipherString\s*=\s*DEFAULT)@SECLEVEL=2/\1/' /etc/ssl/openssl.cnf
|
2019-06-01 11:25:01 +02:00
|
|
|
|
2020-02-26 22:16:46 +01:00
|
|
|
RUN curl https://codeload.github.com/php-memcached-dev/php-memcached/tar.gz/v3.1.5 --output /tmp/php-memcached.tar.gz \
|
|
|
|
&& mkdir -p /usr/src/php/ext \
|
|
|
|
&& tar xzvf /tmp/php-memcached.tar.gz -C /usr/src/php/ext \
|
|
|
|
&& mv /usr/src/php/ext/php-memcached-3.1.5 /usr/src/php/ext/memcached \
|
|
|
|
&& cd /usr/src/php/ext/memcached \
|
|
|
|
&& docker-php-ext-configure /usr/src/php/ext/memcached --disable-memcached-sasl \
|
|
|
|
&& docker-php-ext-install /usr/src/php/ext/memcached \
|
|
|
|
&& rm -rf /usr/src/php/ext/memcached
|
|
|
|
|
2019-06-01 11:25:01 +02:00
|
|
|
COPY --chown=www-data:www-data ./ /app/
|