From 2073645fedbeb7cb1b339b30e5cd00cb85f32efc Mon Sep 17 00:00:00 2001 From: ace Date: Tue, 7 Mar 2023 04:39:27 +0300 Subject: [PATCH] fix image --- docker/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index fc56b51..227292a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,12 +1,11 @@ -FROM rust:alpine as builder -RUN apk update -RUN apk add --no-cache openssl-dev musl-dev +FROM clux/muslrust as builder +RUN apt-get update && apt-get install -y ca-certificates WORKDIR /opt ADD . . -RUN cargo build --release --verbose +RUN cargo build --release --verbose --target x86_64-unknown-linux-musl -FROM alpine:latest -COPY --from=builder /opt/target/release/github-release-bot /opt/github-release-bot +FROM alpine:3.17 +COPY --from=builder /opt/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