Apply cron configuration at runtime

This commit is contained in:
Glenn Y. Rolland 2018-08-28 09:54:06 +02:00
parent 75276047ad
commit 0f1392fe4c

View file

@ -12,7 +12,6 @@ RUN apk update \
RUN mkdir /app RUN mkdir /app
COPY --from=build /go/src/github.com/glenux/trello2mail-go/trello2mail /app/ COPY --from=build /go/src/github.com/glenux/trello2mail-go/trello2mail /app/
COPY docker/trello2mail.cron /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"]