commit 4da84c395cf678e774d8a039c382f9834e9f19fe Author: Kegan Myers Date: Sat Jul 22 18:39:38 2023 +0000 initial commit diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c083470 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.dockerignore +Dockerfile +build.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..24ba6be --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM debian:12-slim as build +ADD https://github.com/DNSCrypt/doh-server/releases/download/0.9.9/doh-proxy_0.9.9_amd64.deb doh-proxy.deb +RUN apt install ./doh-proxy.deb + +FROM scratch +COPY --from=build /usr/bin/doh-proxy /doh-proxy +CMD /doh-proxy diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..9dddba5 --- /dev/null +++ b/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -Eeuxo pipefail + +if [ -z "${TAG:-}" ]; then + TAG="$(git rev-parse HEAD)" +fi + +docker build \ + -t "${REGISTRY:-registry.nrd.li}/${CONTAINER:-unhinged/doh}:${TAG}" \ + .