mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-07-04 09:38:03 +02:00
init commit
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM library/alpine:3.5
|
||||
|
||||
ENV HOME_DIR=/opt/crontab
|
||||
RUN apk add --no-cache --virtual .run-deps bash curl jq docker \
|
||||
&& mkdir -p ${HOME_DIR}
|
||||
|
||||
# Dev
|
||||
COPY config.json ${HOME_DIR}/
|
||||
|
||||
COPY docker-entrypoint /
|
||||
ENTRYPOINT ["/docker-entrypoint"]
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=3s \
|
||||
CMD ps aux | grep '[c]rond' || exit 1
|
||||
|
||||
CMD ["crond","-f"]
|
Reference in New Issue
Block a user