mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 14:16:19 +00:00
offline
This commit is contained in:
parent
b28bccaa80
commit
80a02da0e4
2 changed files with 4 additions and 6 deletions
|
@ -3,15 +3,14 @@ WORKDIR /usr/src/app
|
|||
RUN apk add --no-cache libgcc
|
||||
|
||||
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
|
||||
|
||||
COPY . .
|
||||
RUN sqlite3 ../sqlite.db ''
|
||||
RUN --mount=type=cache,sharing=locked,target=/root/.cargo/git \
|
||||
--mount=type=cache,sharing=locked,target=/root/.cargo/registry \
|
||||
--mount=type=cache,sharing=locked,target=/usr/src/app/target \
|
||||
cargo install --bin api --locked --path .
|
||||
SQLX_OFFLINE=true cargo install --bin api --locked --path .
|
||||
|
||||
FROM base
|
||||
RUN apk add --no-cache sqlite sqlite-libs tini
|
||||
|
|
|
@ -3,15 +3,14 @@ WORKDIR /usr/src/app
|
|||
RUN apk add --no-cache libgcc
|
||||
|
||||
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
|
||||
|
||||
COPY . .
|
||||
RUN sqlite3 ../sqlite.db ''
|
||||
RUN --mount=type=cache,sharing=locked,target=/root/.cargo/git \
|
||||
--mount=type=cache,sharing=locked,target=/root/.cargo/registry \
|
||||
--mount=type=cache,sharing=locked,target=/usr/src/app/target \
|
||||
cargo install --bin scraper --locked --path .
|
||||
SQLX_OFFLINE=true cargo install --bin scraper --locked --path .
|
||||
|
||||
FROM base
|
||||
RUN apk add --no-cache sqlite sqlite-libs
|
||||
|
|
Loading…
Reference in a new issue