golang 1.17
This commit is contained in:
parent
7b6c8469b5
commit
c1ca4e86fb
16
Dockerfile
16
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM golang:1.16-alpine
|
||||
FROM golang:1.17-alpine
|
||||
|
||||
ENV TZ=Europe/Moscow
|
||||
ENV TERM=xterm-color
|
||||
@ -8,8 +8,8 @@ ENV GOOS=linux
|
||||
ENV GOARCH=amd64
|
||||
ENV GO111MODULE=on
|
||||
|
||||
ENV GOLANGCI=1.39.0
|
||||
ENV GOSWAG=1.7.0
|
||||
ENV GOLANGCI=1.43.0
|
||||
ENV GOSWAG=1.7.4
|
||||
|
||||
RUN \
|
||||
apk add --no-cache --update bash curl git tzdata && \
|
||||
@ -21,15 +21,9 @@ RUN \
|
||||
|
||||
RUN \
|
||||
# install golangci-lint
|
||||
go get -u -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 / && \
|
||||
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 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 / && \
|
||||
go install -v github.com/swaggo/swag/cmd/swag@v${GOSWAG} && \
|
||||
# cleanup
|
||||
go clean -cache -modcache && \
|
||||
# print versions
|
||||
|
Loading…
Reference in New Issue
Block a user