feat: add Dockerfile
This commit is contained in:
parent
6ba565c9de
commit
40ceae42ef
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
target
|
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
|
Loading…
Reference in a new issue