Robert Kaussow
c601f31d03
Some checks reported errors
continuous-integration/drone/push Build was killed
53 lines
1.9 KiB
Docker
53 lines
1.9 KiB
Docker
FROM xoxys/nginx:latest
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
|
|
org.label-schema.name="FreshRSS" \
|
|
org.label-schema.vcs-url="https://gitea.rknet.org/docker/freshrss" \
|
|
org.label-schema.vendor="Robert Kaussow" \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
ARG FRESHRSS_VERSION=master
|
|
ARG FRESHRSS_TARBALL=https://github.com/FreshRSS/FreshRSS/archive/${FRESHRSS_VERSION:-master}.tar.gz
|
|
|
|
RUN apk --update add --virtual .build-deps tar curl && \
|
|
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 && \
|
|
mkdir /var/www/.postgresql && \
|
|
echo "Installing FreshRSS '${FRESHRSS_TARBALL}' ..." && \
|
|
curl -SsL ${FRESHRSS_TARBALL} | tar xz -C /var/www/app/ --strip-components=1 && \
|
|
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/* && \
|
|
rm -rf /var/www/app/CHANGELOG.md /var/www/app/CONTRIBUTING.md /var/www/app/CREDITS.md /var/www/app/Docker /var/www/app/README.* && \
|
|
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 && \
|
|
chown -R nginx:nginx /var/www/.postgresql && \
|
|
chown -R nginx:nginx /var/www/app
|
|
|
|
ADD overlay/ /
|
|
|
|
VOLUME /var/www/app/extensions
|
|
VOLUME /var/www/app/data
|
|
|
|
EXPOSE 8080
|
|
|
|
USER nginx
|
|
|
|
STOPSIGNAL SIGTERM
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint"]
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD /usr/local/bin/healthcheck
|
|
WORKDIR /var/www/app
|
|
CMD []
|