mirror of
https://gitea.0xace.cc/rust/github-release-bot.git
synced 2025-06-28 19:43:08 +00:00
update build to v0.1.4
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
FROM ekidd/rust-musl-builder as builder
|
||||
ADD --chown=rust:rust . .
|
||||
|
||||
RUN cargo build --release
|
||||
FROM rust:alpine as builder
|
||||
RUN apk update
|
||||
RUN apk add --no-cache openssl-dev musl-dev
|
||||
WORKDIR /opt
|
||||
ADD . .
|
||||
RUN cargo build --release --verbose
|
||||
|
||||
FROM alpine:latest
|
||||
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/github-release-bot /opt/github-release-bot
|
||||
COPY --from=builder /opt/target/release/github-release-bot /opt/github-release-bot
|
||||
COPY ./docker/entrypoint.sh /opt/entrypoint.sh
|
||||
RUN chmod +x /opt/entrypoint.sh
|
||||
WORKDIR /opt
|
||||
|
Reference in New Issue
Block a user