This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use multistage build Dockerfile (#142)
* use multistage build dockerfile * add .git to dockeringore * simplify makefile
- Loading branch information
Showing
4 changed files
with
20 additions
and
13 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,5 @@ | ||
.git | ||
bin | ||
docs | ||
ci | ||
deploy |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
FROM alpine:3.8 | ||
FROM golang:1.10-alpine3.8 as build | ||
RUN apk add --no-cache make | ||
WORKDIR /go/src/github.com/uswitch/kiam | ||
ADD . . | ||
RUN make | ||
|
||
FROM alpine:3.8 | ||
RUN apk --no-cache add iptables | ||
|
||
COPY bin/kiam-linux-amd64 /kiam | ||
|
||
COPY --from=build /go/src/github.com/uswitch/kiam/bin/kiam-linux-amd64 /kiam | ||
CMD [] |
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