Skip to content

Commit

Permalink
add psql client
Browse files Browse the repository at this point in the history
  • Loading branch information
chliddle committed Dec 10, 2024
1 parent 37a7a1d commit f8ed177
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit f8ed177

Please sign in to comment.