diff --git a/Dockerfile b/Dockerfile index 77687b8..9015cdc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,11 @@ RUN mkdir -p /code/app/temp RUN bun install # Cron job -RUN apk add --no-cache dcron bash +RUN apk add --no-cache curl +RUN curl -OL /code/app/supercronic https://github.com/aptible/supercronic/releases/latest/download/supercronic-linux-amd64 \ + && chmod +x /code/app/supercronic -# Copy the cron job file -COPY cron /etc/crontabs/root +COPY cron /code/app/cron +RUN chmod +x /code/app/cron -CMD ["crond", "-f"] +CMD ["/code/app/supercronic", "/code/app/cron"]