bebot/Dockerfile

15 lines
259 B
Docker

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