Dockerfile

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-03 01:51:40 -05:00
parent 5095bcdcdd
commit 5028eff519
No known key found for this signature in database
2 changed files with 24 additions and 0 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
/target
/deny.toml
/doc

21
Dockerfile Normal file
View file

@ -0,0 +1,21 @@
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"]