forked from travisjeffery/jocko
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Travis Jeffery <[email protected]>
- Loading branch information
1 parent
f5d7996
commit 122387a
Showing
3 changed files
with
26 additions
and
9 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,13 +1,13 @@ | ||
FROM golang:1.9-alpine | ||
FROM golang:1.9-alpine as build-base | ||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git openssh make && \ | ||
go get -u github.com/golang/dep/cmd/dep | ||
ADD . /go/src/github.com/travisjeffery/jocko | ||
WORKDIR /go/src/github.com/travisjeffery/jocko | ||
RUN GOOS=linux GOARCH=amd64 make deps build | ||
RUN GOOS=linux GOARCH=amd64 make build | ||
|
||
FROM alpine:latest | ||
COPY --from=0 /go/src/github.com/travisjeffery/jocko/jocko /usr/local/bin/jocko | ||
COPY --from=build-base /go/src/github.com/travisjeffery/jocko/cmd/jocko/jocko /usr/local/bin/jocko | ||
EXPOSE 9092 9093 9094 9095 | ||
VOLUME "/tmp/jocko" | ||
CMD ["jocko"] | ||
CMD ["jocko", "broker"] |
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