From 5028eff519a73e08e08df05e63d819633cd4776d Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Sun, 3 Nov 2024 01:51:40 -0500 Subject: [PATCH] Dockerfile Signed-off-by: eternal-flame-AD --- .dockerignore | 3 +++ Dockerfile | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..528666e --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +/target +/deny.toml +/doc diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ba7b3be --- /dev/null +++ b/Dockerfile @@ -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 " \ + 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"]