summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 0c449ca9724e8ff95cff2cc0f8404be01b071dee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM rust as build

WORKDIR /build
COPY /src /build/src
COPY /dns /build/dns
COPY /dns-transport /build/dns-transport
COPY /man /build/man
COPY build.rs Cargo.toml /build/

RUN cargo build --release

FROM debian:buster-slim

RUN apt update && apt install -y libssl1.1 ca-certificates && apt clean all

COPY --from=build /build/target/release/dog /dog

ENTRYPOINT ["/dog"]