FROM node:10.11-alpine LABEL maintainer="Tanguy Herbron " ARG CRONICLE_VERSION='0.8.57' RUN apk add --no-cache git curl wget perl bash perl-pathtools tar \ procps tini RUN adduser cronicle -D -h /opt/cronicle USER cronicle WORKDIR /opt/cronicle/ RUN mkdir -p data logs plugins RUN chown cronicle:cronicle data logs plugins RUN curl -L "https://github.com/jhuckaby/Cronicle/archive/v${CRONICLE_VERSION}.tar.gz" | tar zxvf - --strip-components 1 && \ npm install && \ node bin/build.js dist ADD entrypoint.sh /entrypoint.sh EXPOSE 3012 ENTRYPOINT ["/sbin/tini", "--"] CMD ["sh", "/entrypoint.sh"]