github-release-bot/docker/Dockerfile

14 lines
373 B
Docker
Raw Normal View History

2023-03-05 08:00:07 +00:00
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
2021-07-31 20:04:12 +00:00
FROM alpine:latest
2023-03-05 08:00:07 +00:00
COPY --from=builder /opt/target/release/github-release-bot /opt/github-release-bot
2021-07-31 20:04:12 +00:00
COPY ./docker/entrypoint.sh /opt/entrypoint.sh
RUN chmod +x /opt/entrypoint.sh
WORKDIR /opt
ENTRYPOINT ["/opt/entrypoint.sh"]