1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00
Files
cli/Dockerfile.dapper

21 lines
781 B
Docker
Raw Normal View History

FROM golang:1.12.9
2016-07-27 17:55:02 -07:00
RUN apt-get update && \
apt-get install -y xz-utils zip rsync
RUN go get -u golang.org/x/lint/golint && \
go get -d golang.org/x/tools/cmd/goimports && \
# This needs to be kept up to date with rancher/types
git -C /go/src/golang.org/x/tools/cmd/goimports checkout -b release-branch.go1.12 origin/release-branch.go1.12 && \
go install golang.org/x/tools/cmd/goimports
2016-05-26 20:00:15 -07:00
RUN curl -sL https://get.docker.com/builds/Linux/x86_64/docker-1.9.1 > /usr/bin/docker && \
chmod +x /usr/bin/docker
ENV PATH /go/bin:$PATH
ENV DAPPER_SOURCE /go/src/github.com/rancher/cli
2016-07-27 17:55:02 -07:00
ENV DAPPER_OUTPUT bin build/bin dist
2016-05-26 20:00:15 -07:00
ENV DAPPER_DOCKER_SOCKET true
2018-09-11 11:15:13 -07:00
ENV DAPPER_ENV TAG REPO GOOS CROSS DRONE_TAG
2016-05-26 20:00:15 -07:00
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]