2023-03-07 01:39:27 +00:00
|
|
|
FROM clux/muslrust as builder
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates
|
2023-03-05 08:00:07 +00:00
|
|
|
WORKDIR /opt
|
|
|
|
ADD . .
|
2023-03-07 01:39:27 +00:00
|
|
|
RUN cargo build --release --verbose --target x86_64-unknown-linux-musl
|
2021-07-31 20:04:12 +00:00
|
|
|
|
2023-06-15 17:36:14 +00:00
|
|
|
FROM alpine:3.18
|
2023-03-07 01:39:27 +00:00
|
|
|
COPY --from=builder /opt/target/x86_64-unknown-linux-musl/release/github-release-bot /opt/github-release-bot
|
2021-07-31 20:04:12 +00:00
|
|
|
COPY ./docker/entrypoint.sh /opt/entrypoint.sh
|
|
|
|
RUN chmod +x /opt/entrypoint.sh
|
|
|
|
WORKDIR /opt
|
|
|
|
ENTRYPOINT ["/opt/entrypoint.sh"]
|