mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-26 03:26:19 +00:00
aver
This commit is contained in:
parent
860ecc60cd
commit
157d5ee2f0
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
||||||
.env
|
.env
|
||||||
target
|
target
|
||||||
*.Dockerfile
|
*.Dockerfile
|
||||||
|
*.db
|
||||||
|
../*.db
|
||||||
|
test-db
|
|
@ -3,10 +3,11 @@ 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 openssl-dev libsqlite3-dev && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y openssl-dev libsqlite3-dev sqlite3 && rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN sqlite ../sqlite.db ''
|
||||||
RUN --mount=type=cache,sharing=locked,target=/root/.cargo/git \
|
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=/root/.cargo/registry \
|
||||||
--mount=type=cache,sharing=locked,target=/usr/src/app/target \
|
--mount=type=cache,sharing=locked,target=/usr/src/app/target \
|
||||||
|
|
Loading…
Reference in a new issue