From 198e51fc97e799510ca725dfc597c9922af07e46 Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 28 Dec 2023 10:50:56 -0300 Subject: [PATCH] usar busybox crond --- scraper/Containerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scraper/Containerfile b/scraper/Containerfile index fdf5d4d..8fbf68e 100644 --- a/scraper/Containerfile +++ b/scraper/Containerfile @@ -9,8 +9,8 @@ RUN bun install --frozen-lockfile \ && rm -rf node_modules/ FROM base -RUN apk add --no-cache wget zstd cronie tini -RUN printf "#!/bin/sh\nexec bun /bin/scraper auto" > /etc/periodic/daily/scraper \ +RUN apk add --no-cache wget zstd tini +RUN printf "#!/bin/sh\nexec bun /bin/scraper auto\n" > /etc/periodic/daily/scraper \ && chmod +x /etc/periodic/daily/scraper COPY --from=builder /tmp/cli.build.js /bin/scraper @@ -23,5 +23,5 @@ ENV NODE_ENV=production ENV DB_PATH=/db/db.db ENV LISTS_DIR=/listas/ -CMD ["tini", "/usr/sbin/crond", "-n"] +CMD ["tini", "/bin/busybox", "crond", "-f", "-l2"] # CMD ["bun", "/bin/scraper"] \ No newline at end of file