File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM deis/base
2+ ENV CGO_ENABLED 0
23ADD https://storage.googleapis.com/golang/go1.3.linux-amd64.tar.gz /tmp/
34RUN tar -C /usr/local -xzf /tmp/go1.3.linux-amd64.tar.gz
45RUN apt-get update && apt-get install -yq git mercurial
@@ -11,8 +12,7 @@ ADD deis-version /tmp/package/etc/deis-version
1112ENV GOPATH /go:/go/src/github.com/deis/deisctl/Godeps/_workspace
1213WORKDIR /go/src/github.com/deis/deisctl
1314RUN go get github.com/tools/godep
14- # RUN go get -v ./... && go install -v ./...
15- RUN godep go install -v ./...
15+ RUN godep go install -v -a -ldflags '-s' ./...
1616RUN mkdir -p /tmp/package/opt/bin && cp /go/bin/deisctl /tmp/package/opt/bin/deisctl
1717RUN tar -C /tmp/package -czf /tmp/deisctl.tar.gz .
1818ENTRYPOINT ["/go/bin/deisctl" ]
Original file line number Diff line number Diff line change 11COMPONENTS =builder cache controller database logger registry router
22
33build :
4- godep go build ./...
4+ CGO_ENABLED=0 godep go build -a -ldflags ' -s ' ./...
55
66installer :
77 rm -rf dist && mkdir -p dist
8- godep go build -a -o dist/deisctl .
8+ CGO_ENABLED=0 godep go build -a -ldflags ' -s ' -o dist/deisctl .
99 @if [ ! -d makeself ]; then git clone -b deisctl-hack https://github.com/deis/makeself.git; fi
1010 PATH=./makeself:$$ PATH makeself.sh --bzip2 --nox11 --target /usr/local/bin dist \
1111 dist/deisctl-` cat deis-version` -` go env GOOS` -` go env GOARCH` .run " Deis Control Utility" \
You can’t perform that action at this time.
0 commit comments