mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 01:25:28 +03:00
Dockerfile: Use libcurl-impersonate in place of libcurl (#2941)
Fixes #2547
This commit is contained in:
parent
dbab225fd2
commit
c2c88e9876
1 changed files with 11 additions and 2 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,4 +1,6 @@
|
|||
FROM php:7.4.29-fpm
|
||||
FROM lwthiker/curl-impersonate:0.5-ff-slim-buster AS curlimpersonate
|
||||
|
||||
FROM php:7.4.29-fpm AS rssbridge
|
||||
|
||||
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"
|
||||
|
@ -9,7 +11,8 @@ RUN apt-get update && \
|
|||
nginx \
|
||||
zlib1g-dev \
|
||||
libzip-dev \
|
||||
libmemcached-dev && \
|
||||
libmemcached-dev \
|
||||
nss-plugin-pem && \
|
||||
docker-php-ext-install zip && \
|
||||
pecl install memcached && \
|
||||
docker-php-ext-enable memcached && \
|
||||
|
@ -20,6 +23,12 @@ COPY ./config/nginx.conf /etc/nginx/sites-enabled/default
|
|||
|
||||
COPY --chown=www-data:www-data ./ /app/
|
||||
|
||||
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
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||
|
|
Loading…
Reference in a new issue