ovh-dane-companion/Dockerfile

18 lines
339 B
Docker
Raw Normal View History

FROM rust:latest AS builder
WORKDIR /root
COPY . .
RUN cargo build --release
FROM debian:stable-slim
RUN apt update && apt install -y ca-certificates openssl && rm -rf /var/lib/apt/lists/*
ADD https://letsencrypt.org/certs/isrgrootx1.pem /root/issuer.pem
COPY --from=builder /root/target/release/tlsa /root/tlsa
CMD ["/root/tlsa"]