From f6b7d0c6ba9bdb981ef5a14b4f2c03bd2cf6eba9 Mon Sep 17 00:00:00 2001 From: The_Spider Date: Sat, 22 May 2021 21:13:09 +0000 Subject: [PATCH] Update 'build-doh-server.jenkins' --- build-doh-server.jenkins | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build-doh-server.jenkins b/build-doh-server.jenkins index bc88d78..da117f1 100644 --- a/build-doh-server.jenkins +++ b/build-doh-server.jenkins @@ -47,18 +47,15 @@ spec: def dockerfile = """FROM ${repository}/dockerhub/library/golang:alpine AS BUILDER RUN apk --no-cache add git upx && \\ - go get github.com/m13253/dns-over-https/doh-server && \\ - go get -d -v /go/src/github.com/m13253/dns-over-https/doh-server/... && \\ - go install -v /go/src/github.com/m13253/dns-over-https/doh-server/... && \\ - go build -ldflags="-s -w" -o /go/dohserver /go/src/github.com/m13253/dns-over-https/doh-server/ && \\ - upx --brute /go/dohserver + go install github.com/m13253/dns-over-https/doh-server@latest && \\ + upx --brute /go/bin/doh-server FROM ${repository}/library/alpine:latest RUN apk add --no-cache && \\ addgroup -S -g 1000 app && \\ adduser -S app -G app -h /app -u 1000 USER app WORKDIR /app -COPY --from=BUILDER /go/dohserver /app/ +COPY --from=BUILDER /go/bin/doh-server /app/dohserver ENTRYPOINT ./dohserver """