pr_bot/Dockerfile

14 lines
256 B
Docker
Raw Permalink Normal View History

2023-08-04 20:22:01 +02:00
FROM rust 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:22:01 +02:00
RUN cargo install --path .
2023-08-04 19:55:08 +02:00
2023-08-04 20:25:20 +02:00
FROM archlinux
2023-08-04 19:55:08 +02:00
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:35:29 +02:00
RUN pacman -Sy && \
pacman -S openssl-1.1 --noconfirm
2023-08-04 19:55:08 +02:00
2023-08-04 20:06:14 +02:00
CMD [ "gitea-bot" ]