Add docker files

This commit is contained in:
Brian Tarricone 2023-09-15 03:11:45 -07:00
parent 707f6a7a62
commit b1337d3599
2 changed files with 15 additions and 0 deletions

1
.dockerignore Symbolic link
View File

@ -0,0 +1 @@
.gitignore

14
Dockerfile Normal file
View File

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