diff --git a/backend/Cron.Dockerfile b/backend/Cron.Dockerfile new file mode 100644 index 0000000..a507daf --- /dev/null +++ b/backend/Cron.Dockerfile @@ -0,0 +1,9 @@ +FROM ubuntu + +RUN apt-get update && apt-get install -y cron + +COPY ./automation/crontab /var/spool/cron/crontabs/backend + +#ENTRYPOINT [ "/bin/bash" ] + +CMD ["cron", "-f"] diff --git a/backend/automation/bin/coingecko b/backend/automation/bin/coingecko index 2513233..af62f39 100644 Binary files a/backend/automation/bin/coingecko and b/backend/automation/bin/coingecko differ diff --git a/backend/automation/bin/mindicador b/backend/automation/bin/mindicador index 3c002b8..206f18f 100644 Binary files a/backend/automation/bin/mindicador and b/backend/automation/bin/mindicador differ diff --git a/backend/automation/crontab b/backend/automation/crontab index 59446c8..5c5ab53 100644 --- a/backend/automation/crontab +++ b/backend/automation/crontab @@ -1 +1 @@ -0 2 * * * curl backend/update +0 2 * * * curl http://backend/update