From 4da84c395cf678e774d8a039c382f9834e9f19fe Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Sat, 22 Jul 2023 18:39:38 +0000 Subject: [PATCH] initial commit --- .dockerignore | 3 +++ Dockerfile | 7 +++++++ build.sh | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100755 build.sh 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}" \ + .