feat: add Dockerfile

This commit is contained in:
Jan Christian Grünhage 2023-01-01 23:26:56 +01:00
parent 6ba565c9de
commit 40ceae42ef
Signed by: jcgruenhage
GPG key ID: EEC1170CE56FA2ED
2 changed files with 14 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
target

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM docker.io/rust:alpine3.17 as builder
RUN apk add musl-dev openssl-dev pkgconf
RUN cargo install cargo-auditable
COPY . /app
WORKDIR /app
RUN cargo auditable build --release
FROM docker.io/alpine:3.17
COPY --from=builder /app/target/release/cloudflare-ddns-service /usr/local/bin