docker-crontab/Dockerfile

15 lines
355 B
Docker
Raw Normal View History

FROM library/docker:stable
2017-02-12 16:28:53 -07:00
ENV HOME_DIR=/opt/crontab
2017-02-14 07:18:25 -07:00
RUN apk add --no-cache --virtual .run-deps bash jq \
2017-11-14 14:04:30 -07:00
&& mkdir -p ${HOME_DIR}/jobs ${HOME_DIR}/projects \
&& adduser -S docker -D
2017-02-12 16:28:53 -07:00
COPY docker-entrypoint /
ENTRYPOINT ["/docker-entrypoint"]
HEALTHCHECK --interval=5s --timeout=3s \
CMD ps aux | grep '[c]rond' || exit 1
2017-11-14 14:04:30 -07:00
CMD ["crond","-f"]