From 108cf018fd5d2dab4c4d845702f49c197e7503b3 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Mon, 8 Jul 2024 13:34:23 +0200 Subject: [PATCH] add sqlite3 to final image --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1a77413..601adde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.79 as build +FROM rust:1.79-bookworm as build RUN cargo new api WORKDIR /api @@ -12,6 +12,7 @@ RUN touch src/main.rs RUN cargo build -r FROM debian:bookworm-slim +RUN apt-get update && apt-get install -y sqlite3 && rm -rf /var/lib/apt/lists/* COPY --from=build /api/target/release/api . EXPOSE 2004