mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-24 05:08:20 +03:00
24 lines
1 KiB
Docker
24 lines
1 KiB
Docker
FROM php:7-apache-buster
|
|
|
|
LABEL description="RSS-Bridge is a PHP project capable of generating RSS and Atom feeds for websites that don't have one."
|
|
LABEL repository="https://github.com/RSS-Bridge/rss-bridge"
|
|
LABEL website="https://github.com/RSS-Bridge/rss-bridge"
|
|
|
|
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/
|
|
|
|
CMD ["/app/docker-entrypoint.sh"]
|