From b1337d3599a9f9902928721bd0a5170c4b0fe978 Mon Sep 17 00:00:00 2001 From: "Brian J. Tarricone" Date: Fri, 15 Sep 2023 03:11:45 -0700 Subject: [PATCH] Add docker files --- .dockerignore | 1 + Dockerfile | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 120000 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 120000 index 0000000..3e4e48b --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.gitignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..94e5c89 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM rust:1.72-slim-bullseye AS builder + +WORKDIR /bebot-build + +COPY . ./ +RUN cargo build --release + +FROM debian:bookworm-slim + +WORKDIR /bebot + +COPY --from=builder /bebot-build/target/release/bebot ./ + +ENTRYPOINT [ "/bebot/bebot", "/bebot/config/bebot.yaml" ]