Merge pull request #614 from justincormack/git-go

Add git to Go build package
This commit is contained in:
Justin Cormack 2016-10-17 09:49:52 +01:00 committed by GitHub
commit 5186302b65
5 changed files with 5 additions and 5 deletions

View File

@ -1,2 +1,2 @@
FROM golang:1.7-alpine
RUN apk update && apk add build-base
RUN apk update && apk add --no-cache build-base git

View File

@ -8,7 +8,7 @@ default: push
hash:
docker pull $(BASE)
tar cf - Dockerfile | docker build --no-cache -t $(IMAGE):build -
docker run golang:alpine sh -c 'cat /usr/local/go/bin/go /lib/apk/db/installed | sha1sum' | sed 's/ .*//' > hash
docker run $(IMAGE):build sh -c 'cat /usr/local/go/bin/go /lib/apk/db/installed | sha1sum' | sed 's/ .*//' > hash
push: hash
docker pull mobylinux/$(IMAGE):$(shell cat hash) || \

View File

@ -1,4 +1,4 @@
FROM mobylinux/alpine-build-go:e3d97551827fd2ea70b8c484615e85986d4e77fc
FROM mobylinux/alpine-build-go:e726e12b5eea95a4e7aa537e416139d52040c68b
COPY ./ /go/src/diagnostics-server/

View File

@ -1,4 +1,4 @@
FROM mobylinux/alpine-build-go:e3d97551827fd2ea70b8c484615e85986d4e77fc
FROM mobylinux/alpine-build-go:e726e12b5eea95a4e7aa537e416139d52040c68b
COPY ./ /go/src/proxy/

View File

@ -1,4 +1,4 @@
FROM mobylinux/alpine-build-go:e3d97551827fd2ea70b8c484615e85986d4e77fc
FROM mobylinux/alpine-build-go:e726e12b5eea95a4e7aa537e416139d52040c68b
COPY ./ /go/src/vsudd/