mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-29 13:06:19 +00:00
wip: arreglar dockerfile.scraper
This commit is contained in:
parent
bf3dbcc019
commit
eb2f04695c
1 changed files with 3 additions and 2 deletions
|
@ -7,13 +7,14 @@ 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 docker.io/rust:1.67 as rs-build
|
# nightly porque usamos tl con `simd` activado
|
||||||
|
FROM ghcr.io/rust-lang/rust:nightly-bookworm-slim as rs-build
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY scraper-rs/ .
|
COPY scraper-rs/ .
|
||||||
RUN cargo install --path .
|
RUN cargo install --path .
|
||||||
|
|
||||||
FROM docker.io/oven/bun:1-slim
|
FROM docker.io/oven/bun:1-slim
|
||||||
RUN apt-get update && apt-get install -y extra-runtime-dependencies cron && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Scraper
|
# Scraper
|
||||||
COPY --from=build /tmp/cli.build.js /bin/scraper
|
COPY --from=build /tmp/cli.build.js /bin/scraper
|
||||||
|
|
Loading…
Reference in a new issue