Dockerfile
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
5095bcdcdd
commit
5028eff519
2 changed files with 24 additions and 0 deletions
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
/target
|
||||
/deny.toml
|
||||
/doc
|
21
Dockerfile
Normal file
21
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue