Compare commits
No commits in common. "b3cd0b78316f4af6c4e16db824630c040a7e885e" and "64a0dfe2aa2260fbe5a273a2b9d1c35fe992524e" have entirely different histories.
b3cd0b7831
...
64a0dfe2aa
10
Dockerfile
10
Dockerfile
@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.20-alpine
|
FROM golang:1.18-alpine
|
||||||
|
|
||||||
ENV TZ=Europe/Moscow
|
ENV TZ=Europe/Moscow
|
||||||
ENV TERM=xterm-color
|
ENV TERM=xterm-color
|
||||||
@ -9,7 +9,8 @@ ENV GOARCH=amd64
|
|||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
ENV GOPRIVATE=go.pkg.cx
|
ENV GOPRIVATE=go.pkg.cx
|
||||||
|
|
||||||
ENV GOLANGCI=1.53.2
|
ENV GOLANGCI=1.47.3
|
||||||
|
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 && \
|
||||||
@ -22,8 +23,11 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user