fix: make container image actually usable

This commit is contained in:
Jan Christian Grünhage 2023-01-02 00:47:40 +01:00
parent 32b8d8fefb
commit 4eb137fed0
Signed by: jcgruenhage
GPG Key ID: EEC1170CE56FA2ED
1 changed files with 7 additions and 3 deletions

View File

@ -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