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:22:01 +02:00
|
|
|
FROM debian:bullseye-slim
|
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:06:14 +02:00
|
|
|
CMD [ "gitea-bot" ]
|