Compare commits
2 Commits
64a0dfe2aa
...
b3cd0b7831
Author | SHA1 | Date | |
---|---|---|---|
|
b3cd0b7831 | ||
|
905746c190 |
10
Dockerfile
10
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM golang:1.18-alpine
|
||||
FROM golang:1.20-alpine
|
||||
|
||||
ENV TZ=Europe/Moscow
|
||||
ENV TERM=xterm-color
|
||||
@ -9,8 +9,7 @@ ENV GOARCH=amd64
|
||||
ENV GO111MODULE=on
|
||||
ENV GOPRIVATE=go.pkg.cx
|
||||
|
||||
ENV GOLANGCI=1.47.3
|
||||
ENV GOSWAG=1.8.4
|
||||
ENV GOLANGCI=1.53.2
|
||||
|
||||
RUN \
|
||||
apk add --no-cache --update bash curl git tzdata && \
|
||||
@ -23,11 +22,8 @@ RUN \
|
||||
RUN \
|
||||
# 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} && \
|
||||
# install goswag
|
||||
go install -v github.com/swaggo/swag/cmd/swag@v${GOSWAG} && \
|
||||
# cleanup
|
||||
go clean -cache -modcache && \
|
||||
# print versions
|
||||
go version && \
|
||||
golangci-lint --version && \
|
||||
swag --version
|
||||
golangci-lint --version
|
||||
|
Loading…
Reference in New Issue
Block a user