Files
vpnbot/dockerfile/dnstt.dockerfile
T
2025-11-30 20:46:31 +04:00

13 lines
425 B
Docker

ARG image
FROM golang:alpine AS go
RUN apk add --no-cache git \
&& git clone https://www.bamsoftware.com/git/dnstt.git \
&& cd /go/dnstt/dnstt-server \
&& go build -ldflags="-s -w" -trimpath \
&& rm -rf /go/dnstt/.git \
&& apk del git
FROM $image
COPY --from=go /go/dnstt/dnstt-server/dnstt-server /usr/local/bin/
RUN apk add --no-cache openssh iptables \
&& mkdir -p /root/.ssh
ENV ENV="/root/.ashrc"