From 3e98b9758bbd817c0a261cff658abd65aa462155 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 26 Feb 2020 22:21:33 +0100 Subject: [PATCH] Moved to yacron. --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index defd17f..f108e95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM debian:buster MAINTAINER yohan <783b8c87@scimetis.net> ENV DEBIAN_FRONTEND noninteractive ENV TZ Europe/Paris -RUN apt-get update && apt-get -y install cron docker.io -RUN rm -f /etc/crontab -ENTRYPOINT ["/usr/sbin/cron", "-f", "-L", "15"] -#ENTRYPOINT ["/bin/bash"] +RUN apt-get update && apt-get -y install docker.io python3 virtualenv +WORKDIR /root +RUN virtualenv -p python3 yacronenv +RUN yacronenv/bin/pip install yacron +ENTRYPOINT ["/root/yacronenv/bin/yacron", "-c", "/root/crontab.yaml"]