mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 12:05:38 +00:00
Build separate Docker image for doh-server and doh-client
Make doh-client also listen on both IPv4 and IPv6
This commit is contained in:
19
Dockerfile.server
Normal file
19
Dockerfile.server
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM golang:alpine AS build-env
|
||||
|
||||
WORKDIR /src
|
||||
ADD . /src
|
||||
RUN apk add --no-cache git make
|
||||
RUN make doh-server/doh-server
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=build-env /src/doh-server/doh-server /doh-server
|
||||
|
||||
ADD doh-server/doh-server.conf /doh-server.conf
|
||||
|
||||
RUN sed -i '$!N;s/"127.0.0.1:8053",\s*"\[::1\]:8053",/":8053",/;P;D' /doh-server.conf
|
||||
|
||||
EXPOSE 8053
|
||||
|
||||
ENTRYPOINT ["/doh-server"]
|
||||
CMD ["-conf", "/doh-server.conf"]
|
||||
Reference in New Issue
Block a user