diff --git a/Makefile b/Makefile index fec22ab..dba9c3e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.1.3 +VERSION=0.1.4 IMAGE=github-release-bot ifneq ($(REGISTRY),) _REGISTRY =$(REGISTRY)/ diff --git a/docker/Dockerfile b/docker/Dockerfile index 6f8549f..fc56b51 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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