pr_bot/Dockerfile

13 lines
227 B
Docker
Raw Normal View History

2023-08-04 20:12:30 +02:00
FROM rust:alpine as builder
2023-08-04 19:55:08 +02:00
WORKDIR /opt/build
2023-08-04 20:01:17 +02:00
COPY . .
2023-08-04 20:12:30 +02:00
RUN apk add openssl && \
cargo install --path .
2023-08-04 19:55:08 +02:00
FROM alpine
2023-08-04 19:59:10 +02:00
WORKDIR /opt/data
2023-08-04 19:55:08 +02:00
COPY --from=builder /usr/local/cargo/bin/gitea-bot /bin/gitea-bot
2023-08-04 20:06:14 +02:00
CMD [ "gitea-bot" ]