1
0
mirror of https://github.com/rancher/types.git synced 2025-04-28 10:33:18 +00:00
types/Dockerfile.dapper

23 lines
893 B
Docker
Raw Normal View History

2018-09-25 19:20:01 +00:00
FROM golang:1.11-alpine
RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates
RUN go get -d golang.org/x/lint/golint && \
git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca && \
go install golang.org/x/lint/golint && \
rm -rf /go/src /go/pkg
2019-06-12 18:20:02 +00:00
# This install needs to be kept up to date with rancher/rancher
2018-09-25 19:20:01 +00:00
RUN go get -d golang.org/x/tools/cmd/goimports && \
2019-06-12 18:20:02 +00:00
git -C /go/src/golang.org/x/tools/cmd/goimports checkout -b release-branch.go1.12 origin/release-branch.go1.12 && \
2018-09-25 19:20:01 +00:00
go install golang.org/x/tools/cmd/goimports && \
rm -rf /go/src /go/pkg
ENV DAPPER_ENV REPO TAG DRONE_TAG
2017-11-10 20:23:15 +00:00
ENV DAPPER_SOURCE /go/src/github.com/rancher/types/
ENV DAPPER_OUTPUT ./bin ./dist
ENV DAPPER_DOCKER_SOCKET true
ENV HOME ${DAPPER_SOURCE}
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]