-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from dilyar85/multi-stage-build
Apply multi-stage build in Dockerfile
- Loading branch information
Showing
5 changed files
with
13 additions
and
11 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,6 +1,7 @@ | ||
language: go | ||
go: | ||
- 1.7 | ||
install: true | ||
script: | ||
- make test-unit | ||
- .travis/check_workspace.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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
FROM ubuntu | ||
FROM golang:1.7 as builder | ||
WORKDIR $GOPATH/src/github.com/box/kube-applier | ||
COPY . $GOPATH/src/github.com/box/kube-applier | ||
RUN make build | ||
|
||
FROM ubuntu | ||
LABEL maintainer="Greg Lyons<[email protected]>" | ||
WORKDIR /root/ | ||
ADD templates/* /templates/ | ||
|
||
ADD static/ /static/ | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y git | ||
|
||
ADD https://storage.googleapis.com/kubernetes-release/release/v1.9.4/bin/linux/amd64/kubectl /usr/local/bin/kubectl | ||
|
||
RUN chmod +x /usr/local/bin/kubectl | ||
|
||
COPY kube-applier /kube-applier | ||
COPY --from=builder /go/src/github.com/box/kube-applier/kube-applier /kube-applier |
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
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
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