2023-08-04 19:55:08 +02:00
|
|
|
FROM rust as builder
|
|
|
|
|
|
|
|
WORKDIR /opt/build
|
2023-08-04 20:01:17 +02:00
|
|
|
COPY . .
|
2023-08-04 19:55:08 +02:00
|
|
|
RUN cargo install --path .
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
RUN [ "gitea-bot" ]
|