2023-06-15 02:02:49 +00:00
|
|
|
FROM thegeeklab/nginx:latest@sha256:98aeff1c85611d3021783f763e85e07aa2e596f709c16bade4c9dd4df37502aa
|
2019-10-02 07:43:32 +00:00
|
|
|
|
2020-12-20 21:47:44 +00:00
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.title="FreshRSS"
|
|
|
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/freshrss"
|
|
|
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/freshrss"
|
|
|
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/freshrss"
|
2019-10-02 07:43:32 +00:00
|
|
|
|
2020-10-18 19:10:36 +00:00
|
|
|
ARG BUILD_VERSION
|
2021-10-09 20:02:53 +00:00
|
|
|
|
2020-10-18 19:10:36 +00:00
|
|
|
# renovate: datasource=github-releases depName=FreshRSS/FreshRSS
|
2023-03-09 07:51:21 +00:00
|
|
|
ENV FRESHRSS_VERSION="${BUILD_VERSION:-1.21.0}"
|
2020-02-22 14:17:45 +00:00
|
|
|
|
|
|
|
ADD overlay/ /
|
2019-10-02 07:43:32 +00:00
|
|
|
|
2019-10-03 14:15:04 +00:00
|
|
|
RUN apk --update add --virtual .build-deps tar curl && \
|
2022-11-25 13:21:45 +00:00
|
|
|
apk --update add php81 php81-curl php81-fpm php81-gmp php81-intl php81-mbstring php81-xml \
|
|
|
|
php81-zip php81-ctype php81-dom php81-fileinfo php81-iconv php81-json php81-opcache php81-phar \
|
|
|
|
php81-session php81-simplexml php81-xmlreader php81-xmlwriter php81-tokenizer php81-zlib \
|
|
|
|
php81-openssl php81-pdo_sqlite php81-pdo_mysql php81-pdo_pgsql && \
|
2019-10-02 07:43:32 +00:00
|
|
|
rm -rf /var/www/localhost && \
|
2022-11-25 13:21:45 +00:00
|
|
|
rm -f /etc/php81/php-fpm.d/www.conf && \
|
2019-10-02 07:43:32 +00:00
|
|
|
mkdir -p /var/www/app && \
|
2019-10-03 14:15:04 +00:00
|
|
|
mkdir /var/www/.postgresql && \
|
2020-02-22 15:44:10 +00:00
|
|
|
FRESHRSS_VERSION="${FRESHRSS_VERSION##v}" && \
|
|
|
|
echo "Installing FreshRSS version '${FRESHRSS_VERSION}' ..." && \
|
2022-06-21 13:15:16 +00:00
|
|
|
curl -SsfL "https://github.com/FreshRSS/FreshRSS/archive/${FRESHRSS_VERSION}.tar.gz" | \
|
2020-02-22 14:17:45 +00:00
|
|
|
tar xz -C /var/www/app/ -X /.tarignore --strip-components=1 && \
|
2022-11-25 13:21:45 +00:00
|
|
|
curl -SsfL -o /etc/php81/browscap.ini https://browscap.org/stream?q=Lite_PHP_BrowsCapINI && \
|
2019-10-02 07:43:32 +00:00
|
|
|
apk del .build-deps && \
|
|
|
|
rm -rf /var/cache/apk/* && \
|
|
|
|
rm -rf /tmp/* && \
|
|
|
|
mkdir -p /var/run/php && \
|
|
|
|
chown -R nginx /var/run/php && \
|
|
|
|
mkdir -p /var/lib/php/tmp_upload && \
|
|
|
|
mkdir -p /var/lib/php/soap_cache && \
|
|
|
|
mkdir -p /var/lib/php/session && \
|
|
|
|
chown -R nginx /var/lib/php && \
|
2022-11-25 13:21:45 +00:00
|
|
|
chown nginx /etc/php81/php.ini && \
|
2019-10-03 14:15:04 +00:00
|
|
|
chown -R nginx:nginx /var/www/.postgresql && \
|
2019-10-02 07:43:32 +00:00
|
|
|
chown -R nginx:nginx /var/www/app
|
|
|
|
|
|
|
|
VOLUME /var/www/app/extensions
|
|
|
|
VOLUME /var/www/app/data
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
USER nginx
|
|
|
|
|
|
|
|
STOPSIGNAL SIGTERM
|
|
|
|
|
2020-02-21 22:54:20 +00:00
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint"]
|
2019-10-02 07:43:32 +00:00
|
|
|
WORKDIR /var/www/app
|
|
|
|
CMD []
|