Add Dockerfile

This commit is contained in:
Jan Grewe
2019-05-16 00:28:46 +02:00
parent 1ec9548ff1
commit f5ba377d2a

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
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"]