This commit is contained in:
Cat /dev/Nulo 2024-01-11 00:58:03 -03:00
parent 8bc6343639
commit 5c9b6d16c8

View file

@ -7,8 +7,7 @@ COPY . .
RUN bun install --frozen-lockfile RUN bun install --frozen-lockfile
RUN bun build scraper/cli.ts --target=bun --outfile=/tmp/cli.build.js RUN bun build scraper/cli.ts --target=bun --outfile=/tmp/cli.build.js
FROM cgr.dev/chainguard/wolfi-base FROM base
RUN apk add --no-cache bun
# Scraper # Scraper
COPY --from=build /tmp/cli.build.js /bin/scraper COPY --from=build /tmp/cli.build.js /bin/scraper
@ -21,4 +20,4 @@ ENV DB_PATH=/db/db.db
RUN printf "#!/bin/sh\nexec bun /bin/scraper auto\n" > /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
CMD ["busybox","crond","-f", "-l2"] CMD ["busybox", "crond", "-f", "-l2"]