2022-11-15 17:32:44 +01:00
|
|
|
FROM lwthiker/curl-impersonate:0.5-ff-slim-buster AS curlimpersonate
|
|
|
|
|
|
|
|
FROM php:7.4.29-fpm AS rssbridge
|
2021-05-13 19:57:10 +02:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2022-05-12 02:19:25 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install --yes --no-install-recommends \
|
|
|
|
nginx \
|
|
|
|
zlib1g-dev \
|
2022-05-11 20:21:56 -04:00
|
|
|
libzip-dev \
|
2022-11-15 17:32:44 +01:00
|
|
|
libmemcached-dev \
|
|
|
|
nss-plugin-pem && \
|
2022-05-11 20:21:56 -04:00
|
|
|
docker-php-ext-install zip && \
|
2022-05-12 02:19:25 +02:00
|
|
|
pecl install memcached && \
|
|
|
|
docker-php-ext-enable memcached && \
|
2022-10-09 14:14:24 -05:00
|
|
|
docker-php-ext-enable opcache && \
|
2022-05-12 02:19:25 +02:00
|
|
|
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
2018-06-23 20:21:48 +05:30
|
|
|
|
2022-05-12 02:19:25 +02:00
|
|
|
COPY ./config/nginx.conf /etc/nginx/sites-enabled/default
|
2019-06-01 14:55:01 +05:30
|
|
|
|
2021-09-05 05:10:54 +02:00
|
|
|
COPY --chown=www-data:www-data ./ /app/
|
|
|
|
|
2022-11-15 17:32:44 +01:00
|
|
|
COPY --from=curlimpersonate /usr/local/lib/libcurl-impersonate-ff.so /usr/local/lib/curl-impersonate/
|
|
|
|
|
|
|
|
ENV LD_PRELOAD /usr/local/lib/curl-impersonate/libcurl-impersonate-ff.so
|
|
|
|
|
|
|
|
ENV CURL_IMPERSONATE ff91esr
|
|
|
|
|
2022-05-30 20:05:42 +02:00
|
|
|
EXPOSE 80
|
|
|
|
|
2022-05-12 02:19:25 +02:00
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|