Files
pgcat/Dockerfile

16 lines
350 B
Docker
Raw Normal View History

FROM rust:1-slim-bookworm AS builder
RUN apt-get update && \
apt-get install -y build-essential
2022-02-11 12:02:08 -08:00
COPY . /app
WORKDIR /app
RUN cargo build --release
FROM debian:bookworm-slim
2022-02-11 12:02:08 -08:00
COPY --from=builder /app/target/release/pgcat /usr/bin/pgcat
COPY --from=builder /app/pgcat.toml /etc/pgcat/pgcat.toml
WORKDIR /etc/pgcat
2022-02-21 17:49:32 -08:00
ENV RUST_LOG=info
CMD ["pgcat"]