Skip to content

Commit ab8573c

Browse files
authored
docker image (#9)
* docker image * nl
1 parent bc5b9e4 commit ab8573c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target/
2+
tests/
3+
tracing/
4+
.circleci/

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM rust:1.58-slim-buster AS builder
2+
COPY . /app
3+
WORKDIR /app
4+
RUN cargo build --release
5+
6+
FROM debian:buster-slim
7+
COPY --from=builder /app/target/release/pgcat /usr/bin/pgcat
8+
COPY --from=builder /app/pgcat.toml /etc/pgcat/pgcat.toml
9+
WORKDIR /etc/pgcat
10+
ENTRYPOINT ["/usr/bin/pgcat"]

0 commit comments

Comments
 (0)