initial commit

This commit is contained in:
Kegan Myers 2023-07-22 18:39:38 +00:00
commit 4da84c395c
3 changed files with 20 additions and 0 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
.dockerignore
Dockerfile
build.sh

7
Dockerfile Normal file
View file

@ -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

10
build.sh Executable file
View file

@ -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}" \
.