mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
Merge pull request #614 from justincormack/git-go
Add git to Go build package
This commit is contained in:
commit
5186302b65
@ -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
|
||||
|
@ -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) || \
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM mobylinux/alpine-build-go:e3d97551827fd2ea70b8c484615e85986d4e77fc
|
||||
FROM mobylinux/alpine-build-go:e726e12b5eea95a4e7aa537e416139d52040c68b
|
||||
|
||||
COPY ./ /go/src/diagnostics-server/
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM mobylinux/alpine-build-go:e3d97551827fd2ea70b8c484615e85986d4e77fc
|
||||
FROM mobylinux/alpine-build-go:e726e12b5eea95a4e7aa537e416139d52040c68b
|
||||
|
||||
COPY ./ /go/src/proxy/
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM mobylinux/alpine-build-go:e3d97551827fd2ea70b8c484615e85986d4e77fc
|
||||
FROM mobylinux/alpine-build-go:e726e12b5eea95a4e7aa537e416139d52040c68b
|
||||
|
||||
COPY ./ /go/src/vsudd/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user