Compare commits
2 Commits
ef1e92f765
...
d291192ce3
Author | SHA1 | Date | |
---|---|---|---|
|
d291192ce3 | ||
|
409175193d |
12
Dockerfile
12
Dockerfile
@ -9,7 +9,7 @@ ENV GOARCH=amd64
|
|||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
ENV GOPRIVATE=go.pkg.cx
|
ENV GOPRIVATE=go.pkg.cx
|
||||||
|
|
||||||
ENV GOLANGCI=1.42.1
|
ENV GOLANGCI=1.43.0
|
||||||
ENV GOSWAG=1.7.4
|
ENV GOSWAG=1.7.4
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@ -22,15 +22,9 @@ RUN \
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# install golangci-lint
|
# install golangci-lint
|
||||||
go get -u -v github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \
|
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \
|
||||||
cd /go/pkg/mod/github.com/golangci/golangci-lint@v${GOLANGCI} && \
|
|
||||||
go install -ldflags "-X 'main.version=${GOLANGCI}' -X 'main.date=$(date)'" github.com/golangci/golangci-lint/cmd/golangci-lint && \
|
|
||||||
cd / && \
|
|
||||||
# install goswag
|
# install goswag
|
||||||
go get -u -v github.com/swaggo/swag/cmd/swag@v${GOSWAG} && \
|
go install -v github.com/swaggo/swag/cmd/swag@v${GOSWAG} && \
|
||||||
cd /go/pkg/mod/github.com/swaggo/swag@v${GOSWAG} && \
|
|
||||||
go install github.com/swaggo/swag/cmd/swag && \
|
|
||||||
cd / && \
|
|
||||||
# cleanup
|
# cleanup
|
||||||
go clean -cache -modcache && \
|
go clean -cache -modcache && \
|
||||||
# print versions
|
# print versions
|
||||||
|
Loading…
Reference in New Issue
Block a user