Skip to content

Commit

Permalink
added own dockerfile for doh_server based on goofball222's
Browse files Browse the repository at this point in the history
  • Loading branch information
Cielquan committed Feb 7, 2020
1 parent da7de8d commit fd4edc1
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/dothdns/container_configs/doh-docker/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.*
Dockerfile
35 changes: 35 additions & 0 deletions src/dothdns/container_configs/doh-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fd4edc1

Please sign in to comment.