usar busybox crond

This commit is contained in:
Cat /dev/Nulo 2023-12-28 10:50:56 -03:00
parent fcc7449307
commit 198e51fc97

View file

@ -9,8 +9,8 @@ RUN bun install --frozen-lockfile \
&& rm -rf node_modules/ && rm -rf node_modules/
FROM base FROM base
RUN apk add --no-cache wget zstd cronie tini RUN apk add --no-cache wget zstd tini
RUN printf "#!/bin/sh\nexec bun /bin/scraper auto" > /etc/periodic/daily/scraper \ RUN printf "#!/bin/sh\nexec bun /bin/scraper auto\n" > /etc/periodic/daily/scraper \
&& chmod +x /etc/periodic/daily/scraper && chmod +x /etc/periodic/daily/scraper
COPY --from=builder /tmp/cli.build.js /bin/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 DB_PATH=/db/db.db
ENV LISTS_DIR=/listas/ ENV LISTS_DIR=/listas/
CMD ["tini", "/usr/sbin/crond", "-n"] CMD ["tini", "/bin/busybox", "crond", "-f", "-l2"]
# CMD ["bun", "/bin/scraper"] # CMD ["bun", "/bin/scraper"]