Apply cron configuration at runtime
This commit is contained in:
parent
75276047ad
commit
0f1392fe4c
1 changed files with 1 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue