Renovator Bot
c53a74cd9e
All checks were successful
continuous-integration/drone/pr Build is passing
56 lines
2.2 KiB
Docker
56 lines
2.2 KiB
Docker
FROM thegeeklab/nginx:latest@sha256:8d27f2f5350d94da7dfb375ac70206cb6f8381512e3c7674dd23b4ca1c1c443e
|
|
|
|
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"
|
|
|
|
ARG BUILD_VERSION
|
|
|
|
# renovate: datasource=github-releases depName=FreshRSS/FreshRSS
|
|
ENV FRESHRSS_VERSION="${BUILD_VERSION:-1.21.0}"
|
|
|
|
ADD overlay/ /
|
|
|
|
RUN apk --update add --virtual .build-deps tar curl && \
|
|
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 && \
|
|
rm -rf /var/www/localhost && \
|
|
rm -f /etc/php81/php-fpm.d/www.conf && \
|
|
mkdir -p /var/www/app && \
|
|
mkdir /var/www/.postgresql && \
|
|
FRESHRSS_VERSION="${FRESHRSS_VERSION##v}" && \
|
|
echo "Installing FreshRSS version '${FRESHRSS_VERSION}' ..." && \
|
|
curl -SsfL "https://github.com/FreshRSS/FreshRSS/archive/${FRESHRSS_VERSION}.tar.gz" | \
|
|
tar xz -C /var/www/app/ -X /.tarignore --strip-components=1 && \
|
|
curl -SsfL -o /etc/php81/browscap.ini https://browscap.org/stream?q=Lite_PHP_BrowsCapINI && \
|
|
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 && \
|
|
chown nginx /etc/php81/php.ini && \
|
|
chown -R nginx:nginx /var/www/.postgresql && \
|
|
chown -R nginx:nginx /var/www/app
|
|
|
|
VOLUME /var/www/app/extensions
|
|
VOLUME /var/www/app/data
|
|
|
|
EXPOSE 8080
|
|
|
|
USER nginx
|
|
|
|
STOPSIGNAL SIGTERM
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint"]
|
|
WORKDIR /var/www/app
|
|
CMD []
|