2023-01-01 23:47:40 +00:00
|
|
|
FROM docker.io/rust:bullseye as builder
|
2023-01-01 22:26:56 +00:00
|
|
|
|
2023-01-01 23:47:40 +00:00
|
|
|
RUN apt update && apt install libssl-dev pkg-config
|
2023-01-01 22:26:56 +00:00
|
|
|
RUN cargo install cargo-auditable
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN cargo auditable build --release
|
|
|
|
|
2023-01-01 23:47:40 +00:00
|
|
|
FROM docker.io/debian:bullseye-slim
|
|
|
|
|
|
|
|
RUN apt update && apt install openssl ca-certificates
|
2023-01-01 22:26:56 +00:00
|
|
|
|
|
|
|
COPY --from=builder /app/target/release/cloudflare-ddns-service /usr/local/bin
|
2023-01-01 23:47:40 +00:00
|
|
|
|
|
|
|
CMD /usr/local/bin/cloudflare-ddns-service
|