This commit is contained in:
parent
b44788a714
commit
788453d3cb
10
Dockerfile
10
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM golang:1.13-alpine
|
||||
FROM golang:1.14-alpine
|
||||
|
||||
ENV TZ=Europe/Moscow
|
||||
ENV TERM=xterm-color
|
||||
@ -8,7 +8,7 @@ ENV GOOS=linux
|
||||
ENV GOARCH=amd64
|
||||
ENV GO111MODULE=on
|
||||
|
||||
ENV GOLANGCI=1.23.1
|
||||
ENV GOLANGCI=1.23.8
|
||||
ENV GOSWAG=1.6.5
|
||||
|
||||
RUN \
|
||||
@ -22,10 +22,14 @@ RUN \
|
||||
RUN \
|
||||
# install golangci-lint
|
||||
go get -u -v github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \
|
||||
go install -ldflags "-X 'main.version=$(git describe --tags)' -X 'main.commit=$(git rev-parse --short HEAD)' -X 'main.date=$(date)'" github.com/golangci/golangci-lint/cmd/golangci-lint && \
|
||||
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
|
||||
go get -u -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
|
||||
go clean -cache -modcache && \
|
||||
# print versions
|
||||
|
Loading…
Reference in New Issue
Block a user