docker-crontab/Dockerfile
will Farrell 76675e99d5 bug fix
only first w/ onstart was triggered
2017-04-07 23:25:53 -06:00

13 lines
324 B
Docker

FROM library/docker:stable
ENV HOME_DIR=/opt/crontab
RUN apk add --no-cache --virtual .run-deps bash jq \
&& mkdir -p ${HOME_DIR}/jobs ${HOME_DIR}/projects
COPY docker-entrypoint /
ENTRYPOINT ["/docker-entrypoint"]
HEALTHCHECK --interval=5s --timeout=3s \
CMD ps aux | grep '[c]rond' || exit 1
CMD ["crond","-f"]