From 0f1392fe4c5e46ce3aac62400e4b3cdced654878 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 28 Aug 2018 09:54:06 +0200 Subject: [PATCH] Apply cron configuration at runtime --- docker/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 62a1246..f519f7f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,6 @@ RUN apk update \ RUN mkdir /app COPY --from=build /go/src/github.com/glenux/trello2mail-go/trello2mail /app/ COPY docker/trello2mail.cron /app/ -RUN /usr/bin/crontab /app/trello2mail.cron -CMD ["/usr/sbin/cron","-f"] +CMD ["sh", "-c", "/usr/bin/crontab /app/trello2mail.cron && /usr/sbin/cron -f"]