mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 22:26:19 +00:00
docker: cachear rust
This commit is contained in:
parent
1108951c79
commit
0207ea2e18
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,10 @@ FROM base as rs-build
|
||||||
RUN apk add --no-cache rust build-base sqlite-dev
|
RUN apk add --no-cache rust build-base sqlite-dev
|
||||||
|
|
||||||
COPY scraper-rs/ .
|
COPY scraper-rs/ .
|
||||||
RUN cargo install --locked --path .
|
RUN --mount=type=cache,target=/root/.cargo/git \
|
||||||
|
--mount=type=cache,target=/root/.cargo/registry \
|
||||||
|
--mount=type=cache,sharing=private,target=/usr/src/app/target \
|
||||||
|
cargo install --locked --path .
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
RUN apk add --no-cache sqlite sqlite-libs
|
RUN apk add --no-cache sqlite sqlite-libs
|
||||||
|
|
Loading…
Reference in a new issue