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" ]