FROM rust:1-alpine AS builder COPY . /src WORKDIR /src RUN apk add --no-cache musl-dev RUN cargo build --release FROM alpine:latest LABEL \ maintainer="Yumechi " \ org.opencontainers.image.authors="Yumechi " \ org.opencontainers.image.source="https://forge.yumechi.jp/yume/replikey.git" \ org.opencontainers.image.base.name="alpine" COPY --from=builder /src/target/release/replikey /usr/local/bin/replikey ENTRYPOINT ["replikey"]