-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce docker multi-stage build * Whitelist files in .dockerignore * Use alias for first stage in dockerfile
- Loading branch information
1 parent
56f5154
commit 56a4d94
Showing
3 changed files
with
13 additions
and
8 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,2 +1,7 @@ | ||
flink-sample-job/ | ||
# Exclude everything | ||
** | ||
|
||
# Whitelist | ||
!cmd | ||
!vendor | ||
!flink-sample-job/target/ |
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,10 +1,11 @@ | ||
FROM alpine:3.8 | ||
|
||
COPY cli /flink-deployer/cli | ||
FROM golang:1.10.4-alpine3.8 as build | ||
WORKDIR /go/src/github.com/ing-bank/flink-deployer/ | ||
COPY . . | ||
RUN go build ./cmd/cli | ||
|
||
FROM alpine:3.8 | ||
WORKDIR /flink-deployer | ||
|
||
COPY --from=build /go/src/github.com/ing-bank/flink-deployer/cli . | ||
VOLUME [ "/data/flink" ] | ||
|
||
ENTRYPOINT [ "/flink-deployer/cli" ] | ||
CMD [ "help" ] |
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