-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (20 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
22 lines (20 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:1.11.6
ENV DEP_VERSION=v0.5.0
ENV GOLANGCI_LINT_VERSION=v1.11.3
ENV PACKR2_VERSION=v2.0.8
ENV GO_TOOLS_VERSION=release-branch.go1.11
RUN curl -sSL \
-o /usr/local/bin/dep \
https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 \
&& chmod 755 /usr/local/bin/dep \
&& curl -sfL \
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh \
-s -- -b $GOPATH/bin $GOLANGCI_LINT_VERSION \
&& go get -u github.com/gobuffalo/packr/v2/packr2 \
&& cd $GOPATH/src/github.com/gobuffalo/packr/v2/packr2 \
&& git checkout $PACKR2_VERSION \
&& go install \
&& go get -u golang.org/x/tools/cmd/goimports \
&& cd $GOPATH/src/golang.org/x/tools/cmd/goimports \
&& git checkout $GO_TOOLS_VERSION \
&& go install