dyndnsd/Dockerfile

18 lines
406 B
Docker
Raw Normal View History

FROM docker.io/rust:bullseye as builder
2023-01-01 22:26:56 +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
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
CMD /usr/local/bin/cloudflare-ddns-service