From 3efe3a88d7e7ae55cbcfa49a6327d25fccfbe713 Mon Sep 17 00:00:00 2001 From: ace Date: Sun, 5 Mar 2023 11:00:07 +0300 Subject: [PATCH] update build to v0.1.4 --- Makefile | 2 +- docker/Dockerfile | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) 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