From f8ed17715efded3cf2d0a4511614606ea071311c Mon Sep 17 00:00:00 2001 From: chliddle Date: Tue, 10 Dec 2024 17:11:55 +0000 Subject: [PATCH] add psql client --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 715421e37..3a53aef2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM lukemathwalker/cargo-chef:latest-rust-1.79-bookworm AS chef -RUN apt-get update && apt-get install -y protobuf-compiler build-essential clang-tools-14 +RUN apt-get update && apt-get install -y protobuf-compiler build-essential clang-tools-14 FROM chef AS planner WORKDIR /app @@ -15,9 +15,8 @@ ARG PACKAGE RUN cargo build --release --bin ${PACKAGE} FROM debian:bookworm-slim AS runtime -RUN apt-get update && apt-get install -y libpq5 ca-certificates +RUN apt-get update && apt-get install -y libpq5 ca-certificates postgresql-client WORKDIR /app ARG PACKAGE COPY --from=builder /app/target/release/${PACKAGE} ./ RUN mv ./${PACKAGE} ./service -