mirror of
https://gitea.0xace.cc/rust/github-release-bot.git
synced 2024-11-25 13:56:39 +00:00
12 lines
359 B
Docker
12 lines
359 B
Docker
FROM ekidd/rust-musl-builder as builder
|
|
ADD --chown=rust:rust . ./
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM alpine:latest
|
|
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/github-release-bot /opt/github-release-bot
|
|
COPY ./docker/entrypoint.sh /opt/entrypoint.sh
|
|
RUN chmod +x /opt/entrypoint.sh
|
|
WORKDIR /opt
|
|
ENTRYPOINT ["/opt/entrypoint.sh"]
|