docker image (#9)

* docker image

* nl
This commit is contained in:
Lev Kokotov
2022-02-11 12:02:08 -08:00
committed by GitHub
parent bc5b9e422f
commit ab8573c94f
2 changed files with 14 additions and 0 deletions

4
.dockerignore Normal file
View File

@@ -0,0 +1,4 @@
target/
tests/
tracing/
.circleci/

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM rust:1.58-slim-buster AS builder
COPY . /app
WORKDIR /app
RUN cargo build --release
FROM debian:buster-slim
COPY --from=builder /app/target/release/pgcat /usr/bin/pgcat
COPY --from=builder /app/pgcat.toml /etc/pgcat/pgcat.toml
WORKDIR /etc/pgcat
ENTRYPOINT ["/usr/bin/pgcat"]