-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eugene Dementiev
committed
May 17, 2018
1 parent
f9a79e2
commit 1306d02
Showing
3 changed files
with
20 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vendor/ | ||
Dockerfile.build | ||
build.sh |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:1.10-alpine as build | ||
|
||
RUN apk update && apk add git | ||
RUN go get -u github.com/golang/dep/cmd/dep | ||
|
||
WORKDIR /go/src/github.com/springload/ssm-parent | ||
|
||
ADD Gopkg.lock Gopkg.toml ./ | ||
|
||
RUN dep ensure -vendor-only | ||
|
||
ADD ./ ./ | ||
RUN go build |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
docker build -t ssm-parent -f Dockerfile.build . | ||
docker run --rm -v "$(pwd):/tmp/builder" ssm-parent cp ssm-parent /tmp/builder |