mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 18:35:38 +00:00
Add Dockerfile
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user