22 lines
489 B
Text
22 lines
489 B
Text
|
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"]
|