mirror of
https://github.com/catdevnull/preciazo.git
synced 2025-02-20 01:06:25 +00:00
escribir containerfile especificando registry
This commit is contained in:
parent
143c87c433
commit
fcc7449307
1 changed files with 4 additions and 4 deletions
|
@ -1,17 +1,17 @@
|
||||||
FROM oven/bun:1-alpine AS base
|
FROM docker.io/oven/bun:1-alpine AS base
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN bun install --frozen-lockfile \
|
RUN bun install --frozen-lockfile \
|
||||||
&& bun build scraper/cli.ts --target=bun --outfile=/tmp/cli.build.js \
|
&& bun build scraper/cli.ts --target=bun --outfile=/tmp/cli.build.js \
|
||||||
&& 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 cronie tini
|
||||||
RUN printf "#!/bin/sh\nexec bun /bin/scraper auto" > /etc/periodic/daily/scraper \
|
RUN printf "#!/bin/sh\nexec bun /bin/scraper auto" > /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
|
||||||
COPY --from=builder /usr/src/app/db-datos/drizzle /bin/drizzle
|
COPY --from=builder /usr/src/app/db-datos/drizzle /bin/drizzle
|
||||||
|
|
Loading…
Reference in a new issue