mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 14:16:19 +00:00
tini tini tini
This commit is contained in:
parent
36df0fe849
commit
126a172278
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@ FROM cgr.dev/chainguard/wolfi-base AS base
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
RUN apk add --no-cache libgcc
|
RUN apk add --no-cache libgcc
|
||||||
|
|
||||||
FROM docker.io/rust:1 as rs-build
|
FROM docker.io/rust:1 AS rs-build
|
||||||
# RUN apt-get update && apt-get install -y libsqlite3-dev sqlite3 && rm -rf /var/lib/apt/lists/*
|
# RUN apt-get update && apt-get install -y libsqlite3-dev sqlite3 && rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
@ -13,7 +13,8 @@ RUN --mount=type=cache,sharing=locked,target=/root/.cargo/git \
|
||||||
SQLX_OFFLINE=true cargo install --bin scraper --locked --path .
|
SQLX_OFFLINE=true cargo install --bin scraper --locked --path .
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
RUN apk add --no-cache sqlite sqlite-libs
|
RUN apk add --no-cache sqlite sqlite-libs tini
|
||||||
|
ENTRYPOINT ["tini", "--"]
|
||||||
|
|
||||||
# Scraper
|
# Scraper
|
||||||
COPY --from=rs-build /usr/local/cargo/bin/scraper /usr/local/bin/scraper
|
COPY --from=rs-build /usr/local/cargo/bin/scraper /usr/local/bin/scraper
|
||||||
|
|
Loading…
Reference in a new issue