This repository has been archived on 2021-12-12. You can view files and clone it, but cannot push or open issues or pull requests.
kanboard/Dockerfile
Renovator Bot 9edb21fa20
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update thegeeklab/nginx:latest docker digest to 3cc0be1
2021-02-15 21:03:56 +00:00

53 lines
2.1 KiB
Docker

FROM thegeeklab/nginx:latest@sha256:3cc0be13c15c76e076f0b28acc06c8dd489830aaa4ae54e5c0ad4d92c80ec606
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="Kanboard"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/kanboard"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/kanboard"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/kanboard"
ARG BUILD_VERSION
# renovate: datasource=github-releases depName=kanboard/kanboard
ENV KANBOARD_VERSION="${BUILD_VERSION:-v1.2.18}"
ADD overlay/ /
RUN apk --update add --virtual .build-deps tar curl && \
apk --update add ssmtp mailx php7 php7-phar php7-curl \
php7-fpm php7-json php7-zlib php7-xml php7-dom php7-ctype php7-opcache php7-zip php7-iconv \
php7-pdo php7-pdo_mysql php7-pdo_sqlite php7-pdo_pgsql php7-mbstring php7-session php7-bcmath \
php7-gd php7-mcrypt php7-openssl php7-sockets php7-posix php7-ldap php7-simplexml && \
rm -rf /var/www/localhost && \
rm -f /etc/php7/php-fpm.d/www.conf && \
mkdir -p /var/www/app && \
echo "Installing Kanboard version '${KANBOARD_VERSION##v}' ..." && \
curl -SsL "https://github.com/kanboard/kanboard/archive/${KANBOARD_VERSION}.tar.gz" | \
tar xz -C /var/www/app/ -X /.tarignore --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/* && \
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/app
VOLUME /var/www/app/plugins
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 []