mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-26 11:36:20 +00:00
???
This commit is contained in:
parent
8bc6343639
commit
5c9b6d16c8
1 changed files with 2 additions and 3 deletions
|
@ -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"]
|
Loading…
Reference in a new issue