From 157d5ee2f015a1d3968986bb013cca7406276440 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 29 Jun 2024 22:50:25 -0300 Subject: [PATCH] aver --- rust/.dockerignore | 5 ++++- rust/api.Dockerfile | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rust/.dockerignore b/rust/.dockerignore index eaba72a..b910e13 100644 --- a/rust/.dockerignore +++ b/rust/.dockerignore @@ -1,3 +1,6 @@ .env target -*.Dockerfile \ No newline at end of file +*.Dockerfile +*.db +../*.db +test-db \ No newline at end of file diff --git a/rust/api.Dockerfile b/rust/api.Dockerfile index 7d2168e..3714728 100644 --- a/rust/api.Dockerfile +++ b/rust/api.Dockerfile @@ -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 \