Skip to content

Commit

Permalink
add sqlite3 to final image
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmanczak committed Jul 8, 2024
1 parent dcf2057 commit 108cf01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.79 as build
FROM rust:1.79-bookworm as build

RUN cargo new api
WORKDIR /api
Expand All @@ -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

Expand Down

0 comments on commit 108cf01

Please sign in to comment.