fix: make container image actually usable
This commit is contained in:
parent
32b8d8fefb
commit
4eb137fed0
1 changed files with 7 additions and 3 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,6 +1,6 @@
|
|||
FROM docker.io/rust:alpine3.17 as builder
|
||||
FROM docker.io/rust:bullseye as builder
|
||||
|
||||
RUN apk add musl-dev openssl-dev pkgconf
|
||||
RUN apt update && apt install libssl-dev pkg-config
|
||||
RUN cargo install cargo-auditable
|
||||
|
||||
COPY . /app
|
||||
|
@ -8,6 +8,10 @@ WORKDIR /app
|
|||
|
||||
RUN cargo auditable build --release
|
||||
|
||||
FROM docker.io/alpine:3.17
|
||||
FROM docker.io/debian:bullseye-slim
|
||||
|
||||
RUN apt update && apt install openssl ca-certificates
|
||||
|
||||
COPY --from=builder /app/target/release/cloudflare-ddns-service /usr/local/bin
|
||||
|
||||
CMD /usr/local/bin/cloudflare-ddns-service
|
||||
|
|
Loading…
Reference in a new issue