File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM golang:alpine as build
2- ENV RELEASE_TAG 2.1.15
1+ FROM golang:alpine AS build
2+
3+ ARG RELEASE_TAG=2.1.15
4+ ENV RELEASE_TAG=$RELEASE_TAG
5+
36RUN apk --no-cache add git && \
4- git clone https://github.com/jedisct1/dnscrypt-proxy /go/src/github.com/jedisct1/ && \
5- cd /go/src/github.com/jedisct1/dnscrypt-proxy && \
6- git checkout tags/${RELEASE_TAG} && \
7+ git clone --depth 1 --branch "${RELEASE_TAG}" https://github.com/DNSCrypt/dnscrypt-proxy.git /src && \
8+ cd /src && \
79 CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-s -w -extldflags "-static"' -v ./...
810
911FROM alpine
12+
1013RUN apk --no-cache add ca-certificates
14+
1115COPY --from=build /go/bin/dnscrypt-proxy /usr/local/bin/dnscrypt-proxy
16+
1217ADD config /config
18+
1319EXPOSE 53/udp
1420
1521CMD ["dnscrypt-proxy" , "-config" , "/config/dnscrypt-proxy.toml" ]
22+
You can’t perform that action at this time.
0 commit comments