Compare commits
No commits in common. "master" and "1.11.5" have entirely different histories.
31
Dockerfile
31
Dockerfile
@ -1,26 +1,25 @@
|
|||||||
FROM golang:1.23-alpine
|
FROM golang:1.11-alpine
|
||||||
|
|
||||||
ENV TZ=Europe/Moscow
|
ENV TZ=Europe/Moscow
|
||||||
ENV TERM=xterm-color
|
ENV TERM=xterm-color
|
||||||
|
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
ENV GOPRIVATE=go.pkg.cx
|
ENV GOOS=linux
|
||||||
|
ENV GOARCH=amd64
|
||||||
ENV GOLANGCI=1.63.4
|
ENV GOLANGCI=1.13
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache --update bash curl git tzdata && \
|
apk add --no-cache --update bash curl git tzdata && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
cp /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
cp /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
||||||
echo "${TZ}" > /etc/timezone && date
|
echo "${TZ}" > /etc/timezone && date
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# install golangci-lint
|
go get -u -v github.com/golangci/golangci-lint/cmd/golangci-lint && \
|
||||||
go install -v -ldflags "-X 'main.version=${GOLANGCI}' -X 'main.date=$(date)'" github.com/golangci/golangci-lint/cmd/golangci-lint@v${GOLANGCI} && \
|
cd /go/src/github.com/golangci/golangci-lint && \
|
||||||
# cleanup
|
git checkout v${GOLANGCI} && \
|
||||||
go clean -cache -modcache && \
|
cd /go/src/github.com/golangci/golangci-lint/cmd/golangci-lint && \
|
||||||
# print versions
|
go install -ldflags "-X 'main.version=$(git describe --tags)' -X 'main.commit=$(git rev-parse --short HEAD)' -X 'main.date=$(date)'" && \
|
||||||
go version && \
|
go version && \
|
||||||
golangci-lint --version
|
golangci-lint --version
|
||||||
|
Loading…
Reference in New Issue
Block a user