dns proxy
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2025-03-24 14:40:12 +01:00
parent 1600112965
commit 045c1b1904
7 changed files with 288 additions and 0 deletions

View File

@@ -1,3 +1,12 @@
FROM golang:1.22.1-alpine AS build
WORKDIR /src
COPY src /src
RUN \
go mod download && \
CGO_ENABLED=0 GOOS=linux go build -a -o /dnsproxy cmd/main.go
FROM alpine:latest
RUN \
@@ -6,6 +15,7 @@ RUN \
wget -O /etc/unbound/named.cache ftp://ftp.internic.net//domain/named.cache
COPY rootfs /
COPY --from=build /dnsproxy /app/
HEALTHCHECK --interval=30s --start-period=5s --timeout=10s \
CMD /usr/bin/host -T -p 1053 asperti.com 127.0.0.1