2022-02-13 19:38:45 +01:00
|
|
|
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/*
|
|
|
|
|
2022-02-15 08:39:39 +01:00
|
|
|
ADD https://letsencrypt.org/certs/isrgrootx1.pem /root/issuer.pem
|
|
|
|
|
2022-02-13 19:38:45 +01:00
|
|
|
COPY --from=builder /root/target/release/tlsa /root/tlsa
|
|
|
|
|
|
|
|
CMD ["/root/tlsa"]
|