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-08-07 15:21:28 +02:00
|
|
|
&& apt-get --yes update \
|
|
|
|
&& apt-get --yes --no-install-recommends install \
|
|
|
|
zlib1g-dev \
|
|
|
|
libmemcached-dev \
|
|
|
|
&& pecl install memcached \
|
|
|
|
&& docker-php-ext-enable memcached \
|
2019-06-01 11:25:01 +02:00
|
|
|
&& 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
|
|
|
|
|
|
|
COPY --chown=www-data:www-data ./ /app/
|