Do not install swag binary

This commit is contained in:
Anton Zadvorny 2023-06-12 08:39:58 +06:00
parent 64a0dfe2aa
commit 905746c190

View File

@ -9,8 +9,7 @@ ENV GOARCH=amd64
ENV GO111MODULE=on ENV GO111MODULE=on
ENV GOPRIVATE=go.pkg.cx ENV GOPRIVATE=go.pkg.cx
ENV GOLANGCI=1.47.3 ENV GOLANGCI=1.53.2
ENV GOSWAG=1.8.4
RUN \ RUN \
apk add --no-cache --update bash curl git tzdata && \ apk add --no-cache --update bash curl git tzdata && \
@ -23,11 +22,8 @@ RUN \
RUN \ RUN \
# install golangci-lint # install golangci-lint
go install -v -ldflags "-X 'main.version=${GOLANGCI}' -X 'main.date=$(date)'" github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \ go install -v -ldflags "-X 'main.version=${GOLANGCI}' -X 'main.date=$(date)'" github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \
# install goswag
go install -v github.com/swaggo/swag/cmd/swag@v${GOSWAG} && \
# cleanup # cleanup
go clean -cache -modcache && \ go clean -cache -modcache && \
# print versions # print versions
go version && \ go version && \
golangci-lint --version && \ golangci-lint --version
swag --version