From 588a41270448ff2b084793ceb574fd3cb7bd1d27 Mon Sep 17 00:00:00 2001 From: imnyang Date: Fri, 9 May 2025 21:01:22 +0900 Subject: [PATCH] =?UTF-8?q?dcron=EC=9D=80=20=EC=A2=80;;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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"]