update build to v0.1.4

This commit is contained in:
ace
2023-03-05 11:00:07 +03:00
parent f6e2d5857b
commit 3efe3a88d7
2 changed files with 8 additions and 6 deletions

View File

@ -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