-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added own dockerfile for doh_server based on goofball222's
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.* | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |