2022-11-15 19:32:44 +03:00
|
|
|
FROM lwthiker/curl-impersonate:0.5-ff-slim-buster AS curlimpersonate
|
|
|
|
|
|
|
|
FROM php:7.4.29-fpm AS rssbridge
|
2021-05-13 20:57:10 +03: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 03:19:25 +03:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install --yes --no-install-recommends \
|
|
|
|
nginx \
|
|
|
|
zlib1g-dev \
|
2022-05-12 03:21:56 +03:00
|
|
|
libzip-dev \
|
2022-11-15 19:32:44 +03:00
|
|
|
libmemcached-dev \
|
[OLXBridge] new bridge (#2944)
* [OLXBridge] new bridge
* [OLXBridge] option to limit to shipping offers only
* [OLXBridge] set the feed title according to search query
* [OLXBridge] Fix PHP notices
* [OLXBridge] Remove trailing slash from the URL
* [OLXBridge] filter out the imposed additional search categories
* [OLXBridge] limit search to 'new' OLX platform variants
* [OLXBridge] Parse date, add ID, description
Deep-crawl all results. Penalty is low, as we were doing this for almost all of the results, anyway, yet it allows to obtain a unique ID, an uncomplicated Date string and a description.
Requires ext-intl for parsing the date according to locale.
* [OLXBridge] Parse date, add ID, description
Deep-crawl all results. Penalty is low, as we were doing this for almost all of the results, anyway, yet it allows to obtain a unique ID, an uncomplicated Date string and a description.
Requires ext-intl for parsing the date according to locale.
* [OLXBridge] Images are optional, handle appropriately
* [OLXBridge] handle the ID coming from sibling auto-moto portal
* [OLXBridge] handle the photos coming from sibling auto-moto portal
* [OLXBridge] use meta property to find img URL
* [OLXBridge] handle the date coming from sibling auto-moto portal
* [OLXBridge] use simplified syntax to retrieve content attribute value
* [OLXBridge] handle the description coming from sibling auto-moto portal
* [OLXBridge] fix phpcs complaints
* [OLXBridge] add categories
* [OLXBridge] handle the categories coming from sibling auto-moto portal
* [OLXBridge] hint image MIME type
OLX images have no obvious extension
* [OLXBridge] Fix content formatting
* [OLXBridge] URL is pattern-checked, so no need to check again
* [OLXBridge] return actual search query as URI
2022-11-17 19:57:05 +03:00
|
|
|
nss-plugin-pem \
|
|
|
|
libicu-dev && \
|
2022-05-12 03:21:56 +03:00
|
|
|
docker-php-ext-install zip && \
|
[OLXBridge] new bridge (#2944)
* [OLXBridge] new bridge
* [OLXBridge] option to limit to shipping offers only
* [OLXBridge] set the feed title according to search query
* [OLXBridge] Fix PHP notices
* [OLXBridge] Remove trailing slash from the URL
* [OLXBridge] filter out the imposed additional search categories
* [OLXBridge] limit search to 'new' OLX platform variants
* [OLXBridge] Parse date, add ID, description
Deep-crawl all results. Penalty is low, as we were doing this for almost all of the results, anyway, yet it allows to obtain a unique ID, an uncomplicated Date string and a description.
Requires ext-intl for parsing the date according to locale.
* [OLXBridge] Parse date, add ID, description
Deep-crawl all results. Penalty is low, as we were doing this for almost all of the results, anyway, yet it allows to obtain a unique ID, an uncomplicated Date string and a description.
Requires ext-intl for parsing the date according to locale.
* [OLXBridge] Images are optional, handle appropriately
* [OLXBridge] handle the ID coming from sibling auto-moto portal
* [OLXBridge] handle the photos coming from sibling auto-moto portal
* [OLXBridge] use meta property to find img URL
* [OLXBridge] handle the date coming from sibling auto-moto portal
* [OLXBridge] use simplified syntax to retrieve content attribute value
* [OLXBridge] handle the description coming from sibling auto-moto portal
* [OLXBridge] fix phpcs complaints
* [OLXBridge] add categories
* [OLXBridge] handle the categories coming from sibling auto-moto portal
* [OLXBridge] hint image MIME type
OLX images have no obvious extension
* [OLXBridge] Fix content formatting
* [OLXBridge] URL is pattern-checked, so no need to check again
* [OLXBridge] return actual search query as URI
2022-11-17 19:57:05 +03:00
|
|
|
docker-php-ext-install intl && \
|
2022-05-12 03:19:25 +03:00
|
|
|
pecl install memcached && \
|
|
|
|
docker-php-ext-enable memcached && \
|
2022-10-09 22:14:24 +03:00
|
|
|
docker-php-ext-enable opcache && \
|
2022-05-12 03:19:25 +03:00
|
|
|
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
2018-06-23 17:51:48 +03:00
|
|
|
|
2022-05-12 03:19:25 +03:00
|
|
|
COPY ./config/nginx.conf /etc/nginx/sites-enabled/default
|
2019-06-01 12:25:01 +03:00
|
|
|
|
2021-09-05 06:10:54 +03:00
|
|
|
COPY --chown=www-data:www-data ./ /app/
|
|
|
|
|
2022-11-15 19:32:44 +03: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 21:05:42 +03:00
|
|
|
EXPOSE 80
|
|
|
|
|
2022-05-12 03:19:25 +03:00
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|