forked from RSS-Bridge/rss-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RSS-Bridge:master' into master
- Loading branch information
Showing
249 changed files
with
8,605 additions
and
5,890 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Visual Studio Code | ||
.vscode/* | ||
|
||
# Generated files | ||
comment*.md | ||
comment*.txt |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,47 @@ | ||
FROM lwthiker/curl-impersonate:0.5-ff-slim-buster AS curlimpersonate | ||
|
||
FROM php:8.0.27-fpm-buster AS rssbridge | ||
FROM debian:12-slim 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" | ||
LABEL website="https://github.com/RSS-Bridge/rss-bridge" | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && \ | ||
apt-get install --yes --no-install-recommends \ | ||
ca-certificates \ | ||
nginx \ | ||
zlib1g-dev \ | ||
libzip-dev \ | ||
libmemcached-dev \ | ||
nss-plugin-pem \ | ||
libicu-dev && \ | ||
docker-php-ext-install zip && \ | ||
docker-php-ext-install intl && \ | ||
pecl install memcached && \ | ||
docker-php-ext-enable memcached && \ | ||
docker-php-ext-enable opcache && \ | ||
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" | ||
|
||
COPY ./config/nginx.conf /etc/nginx/sites-enabled/default | ||
|
||
COPY --chown=www-data:www-data ./ /app/ | ||
php-curl \ | ||
php-fpm \ | ||
php-intl \ | ||
# php-json is enabled by default with PHP 8.2 in Debian 12 | ||
php-mbstring \ | ||
php-memcached \ | ||
# php-opcache is enabled by default with PHP 8.2 in Debian 12 | ||
# php-openssl is enabled by default with PHP 8.2 in Debian 12 | ||
php-sqlite3 \ | ||
php-xml \ | ||
php-zip \ | ||
# php-zlib is enabled by default with PHP 8.2 in Debian 12 | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# logs should go to stdout / stderr | ||
RUN ln -sfT /dev/stderr /var/log/nginx/error.log; \ | ||
ln -sfT /dev/stdout /var/log/nginx/access.log; \ | ||
chown -R --no-dereference www-data:adm /var/log/nginx/ | ||
|
||
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 | ||
|
||
COPY ./config/nginx.conf /etc/nginx/sites-available/default | ||
COPY ./config/php-fpm.conf /etc/php/8.2/fpm/pool.d/rss-bridge.conf | ||
COPY ./config/php.ini /etc/php/8.2/fpm/conf.d/90-rss-bridge.conf | ||
|
||
COPY --chown=www-data:www-data ./ /app/ | ||
|
||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/app/docker-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.