Dockerfile 372 B

123456789101112131415161718
  1. FROM rust as build
  2. WORKDIR /build
  3. COPY /src /build/src
  4. COPY /dns /build/dns
  5. COPY /dns-transport /build/dns-transport
  6. COPY /man /build/man
  7. COPY build.rs Cargo.toml /build/
  8. RUN cargo build --release
  9. FROM debian:buster-slim
  10. RUN apt update && apt install -y libssl1.1 ca-certificates && apt clean all
  11. COPY --from=build /build/target/release/dog /dog
  12. ENTRYPOINT ["/dog"]