forked from gliderlabs/registrator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build issues Close gliderlabs#468
- Loading branch information
Yann DEGAT
committed
Sep 5, 2016
1 parent
1ed31d8
commit ac47f6f
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM gliderlabs/alpine:3.2 | ||
FROM gliderlabs/alpine:3.3 | ||
ENTRYPOINT ["/bin/registrator"] | ||
|
||
COPY . /go/src/github.com/gliderlabs/registrator | ||
RUN apk-install -t build-deps go git mercurial \ | ||
RUN apk-install -t build-deps build-base go git mercurial \ | ||
&& cd /go/src/github.com/gliderlabs/registrator \ | ||
&& export GOPATH=/go \ | ||
&& go get \ | ||
&& go build -ldflags "-X main.Version $(cat VERSION)" -o /bin/registrator \ | ||
&& go build -ldflags "-X main.Version=$(cat VERSION)" -o /bin/registrator \ | ||
&& rm -rf /go \ | ||
&& apk del --purge build-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM gliderlabs/alpine:3.2 | ||
FROM gliderlabs/alpine:3.3 | ||
CMD ["/bin/registrator"] | ||
|
||
ENV GOPATH /go | ||
RUN apk-install go git mercurial | ||
RUN apk-install build-base go git mercurial | ||
COPY . /go/src/github.com/gliderlabs/registrator | ||
RUN cd /go/src/github.com/gliderlabs/registrator \ | ||
&& go get \ | ||
&& go build -ldflags "-X main.Version dev" -o /bin/registrator | ||
&& go build -ldflags "-X main.Version=dev" -o /bin/registrator |