This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
freshrss/Dockerfile

56 lines
2.2 KiB
Docker
Raw Normal View History

FROM thegeeklab/nginx:latest@sha256:d60b2a46f5526f00f58ddd89e88a0a1806eb7c4975262b6ee61b6aff7a2db738
2019-10-02 07:43:32 +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
# renovate: datasource=github-releases depName=FreshRSS/FreshRSS
ENV FRESHRSS_VERSION="${BUILD_VERSION:-1.17.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 && \
2019-10-02 07:43:32 +00:00
apk --update add php7 php7-curl php7-fpm php7-gmp php7-intl php7-mbstring php7-xml \
php7-zip php7-ctype php7-dom php7-fileinfo php7-iconv php7-json php7-session \
php7-simplexml php7-xmlreader php7-zlib php7-pdo_sqlite php7-pdo_mysql\
php7-pdo_pgsql && \
rm -rf /var/www/localhost && \
rm -f /etc/php7/php-fpm.d/www.conf && \
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}' ..." && \
curl -SsL "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 && \
2019-10-02 07:43:32 +00:00
curl -SsL -o /etc/php7/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/php7/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"]
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD /usr/local/bin/healthcheck
2019-10-02 07:43:32 +00:00
WORKDIR /var/www/app
CMD []