Skip to content

Commit

Permalink
aver
Browse files Browse the repository at this point in the history
  • Loading branch information
catdevnull committed Jun 30, 2024
1 parent 860ecc6 commit 157d5ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rust/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.env
target
*.Dockerfile
*.Dockerfile
*.db
../*.db
test-db
3 changes: 2 additions & 1 deletion rust/api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ 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 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

COPY . .
RUN sqlite ../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 \
Expand Down

0 comments on commit 157d5ee

Please sign in to comment.