FROM rust as builder
WORKDIR /opt/build
RUN cargo install --path .
FROM alpine
COPY --from=builder /usr/local/cargo/bin/gitea-bot /bin/gitea-bot
RUN [ "gitea-bot" ]