replikey/Dockerfile
eternal-flame-AD 5028eff519
Dockerfile
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-03 01:51:40 -05:00

21 lines
489 B
Docker

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 <yume@yumechi.jp>" \
org.opencontainers.image.authors="Yumechi <yume@yumechi.jp>" \
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"]