From 4eb137fed0ae41c87a446b04292cf81706f3d65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Mon, 2 Jan 2023 00:47:40 +0100 Subject: [PATCH] fix: make container image actually usable --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1fd5344..17acfe5 100644 --- a/Dockerfile +++ b/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