wip: arreglar dockerfile.scraper

This commit is contained in:
Nulo 2024-01-11 20:56:51 +00:00 committed by GitHub
parent bf3dbcc019
commit eb2f04695c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,13 +7,14 @@ COPY . .
RUN bun install --frozen-lockfile
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
COPY scraper-rs/ .
RUN cargo install --path .
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
COPY --from=build /tmp/cli.build.js /bin/scraper