mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-24 18:36:59 +03:00
18 lines
No EOL
750 B
Docker
18 lines
No EOL
750 B
Docker
FROM php:7-apache
|
|
|
|
ENV APACHE_DOCUMENT_ROOT=/app
|
|
|
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
|
&& apt-get --yes update \
|
|
&& apt-get --yes --no-install-recommends install \
|
|
zlib1g-dev \
|
|
libmemcached-dev \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& pecl install memcached \
|
|
&& docker-php-ext-enable memcached \
|
|
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
|
&& 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
|
|
|
|
COPY --chown=www-data:www-data ./ /app/ |