forked from rancher/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dapper
More file actions
22 lines (19 loc) · 802 Bytes
/
Dockerfile.dapper
File metadata and controls
22 lines (19 loc) · 802 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.13.9
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.13 origin/release-branch.go1.13 && \
go install golang.org/x/tools/cmd/goimports
RUN curl -sL https://get.docker.com/builds/Linux/x86_64/docker-1.9.1 > /usr/bin/docker && \
chmod +x /usr/bin/docker
ENV GO111MODULE off
ENV PATH /go/bin:$PATH
ENV DAPPER_SOURCE /go/src/github.com/rancher/cli
ENV DAPPER_OUTPUT bin build/bin dist
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_ENV TAG REPO GOOS CROSS DRONE_TAG
WORKDIR ${DAPPER_SOURCE}
ENTRYPOINT ["./scripts/entry"]
CMD ["ci"]