fix image

This commit is contained in:
ace 2023-03-07 04:39:27 +03:00
parent 0d1637137a
commit 2073645fed
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -1,12 +1,11 @@
FROM rust:alpine as builder FROM clux/muslrust as builder
RUN apk update RUN apt-get update && apt-get install -y ca-certificates
RUN apk add --no-cache openssl-dev musl-dev
WORKDIR /opt WORKDIR /opt
ADD . . ADD . .
RUN cargo build --release --verbose RUN cargo build --release --verbose --target x86_64-unknown-linux-musl
FROM alpine:latest FROM alpine:3.17
COPY --from=builder /opt/target/release/github-release-bot /opt/github-release-bot 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 COPY ./docker/entrypoint.sh /opt/entrypoint.sh
RUN chmod +x /opt/entrypoint.sh RUN chmod +x /opt/entrypoint.sh
WORKDIR /opt WORKDIR /opt