Add Dockerfile
[dns-over-https.git] / Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:alpine AS build-env

WORKDIR /src
ADD . /src
RUN apk add --no-cache git make
RUN make

FROM alpine:latest

COPY --from=build-env /src/doh-client/doh-client /doh-client
COPY --from=build-env /src/doh-server/doh-server /doh-server

ADD doh-client/doh-client.conf /doh-client.conf
ADD doh-server/doh-server.conf /doh-server.conf

RUN sed -i 's/127.0.0.1/0.0.0.0/' /doh-server.conf

EXPOSE 8053

ENTRYPOINT ["/doh-server"]
CMD ["-conf", "/doh-server.conf"]