diff --git a/README.rst b/README.rst index ae6bc3e..8629dbf 100644 --- a/README.rst +++ b/README.rst @@ -27,6 +27,12 @@ Disclaimer Use at own risk see the License.rst file for more details. +Acknowledgments +--------------- + +Dockerfile for doh_server is based on https://github.com/goofball222/dns-over-https + + .. .############################### LINKS ############################### .. BADGES START diff --git a/src/dothdns/container_configs/doh-docker/.dockerignore b/src/dothdns/container_configs/doh-docker/.dockerignore new file mode 100644 index 0000000..7eaa663 --- /dev/null +++ b/src/dothdns/container_configs/doh-docker/.dockerignore @@ -0,0 +1,2 @@ +.* +Dockerfile diff --git a/src/dothdns/container_configs/doh-docker/Dockerfile b/src/dothdns/container_configs/doh-docker/Dockerfile new file mode 100644 index 0000000..72000c6 --- /dev/null +++ b/src/dothdns/container_configs/doh-docker/Dockerfile @@ -0,0 +1,35 @@ +FROM alpine + +ARG BUILD_DATE +ARG VERSION + +LABEL \ + org.label-schema.vendor="Cielquan - cielquan@protonmail.com" \ + org.label-schema.url="https://github.com/Cielquan/DoTH-DNS/" \ + org.label-schema.name="DoH Server" \ + org.label-schema.version=$VERSION \ + org.label-schema.build-date=$BUILD_DATE \ + org.label-schema.license="GPL-3.0" \ + org.label-schema.schema-version="1.0" + +ENV \ + GOPATH="/go" \ + GOCACHE="/tmp/gocache" + +WORKDIR /opt/dns-over-https + +COPY configs/ conf/ + +RUN \ + set -x \ + && delgroup ping \ + && addgroup -g 8053 doh \ + && adduser -D -G doh -u 8053 doh \ + && apk add -q --no-cache --virtual .build-deps gcc git go musl-dev \ + && apk add -q --no-cache bash ca-certificates shadow su-exec tzdata \ + && go get github.com/m13253/dns-over-https/doh-server \ + && cp -r /go/bin/* /usr/local/bin \ + && apk del -q --purge .build-deps \ + && rm -rf /go /root/.cache/* /tmp/* /var/cache/apk/* + +ENTRYPOINT su-exec doh:doh doh-server -conf /opt/dns-over-https/conf/doh-server.conf