Dockerfile 271 B

1234567891011
  1. FROM rust:1 AS builder
  2. COPY . /app
  3. WORKDIR /app
  4. RUN cargo build --release
  5. FROM debian:bullseye-slim
  6. COPY --from=builder /app/target/release/pgcat /usr/bin/pgcat
  7. COPY --from=builder /app/pgcat.toml /etc/pgcat/pgcat.toml
  8. WORKDIR /etc/pgcat
  9. ENV RUST_LOG=info
  10. CMD ["pgcat"]