-
Notifications
You must be signed in to change notification settings - Fork 19
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 #102 from kcajmagic/addDockerBuild
add docker build to travis build
- Loading branch information
Showing
2 changed files
with
23 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
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,21 @@ | ||
FROM golang:alpine as builder | ||
MAINTAINER Jack Murdock <[email protected]> | ||
|
||
# build the binary | ||
WORKDIR /go/src | ||
COPY src/ /go/src/ | ||
|
||
RUN go build -o caduceus_linux_amd64 caduceus | ||
|
||
EXPOSE 6000 6001 6002 | ||
RUN mkdir -p /etc/caduceus | ||
VOLUME /etc/caduceus | ||
|
||
# the actual image | ||
FROM alpine:latest | ||
RUN apk --no-cache add ca-certificates | ||
RUN mkdir -p /etc/caduceus | ||
VOLUME /etc/caduceus | ||
WORKDIR /root/ | ||
COPY --from=builder /go/src/caduceus_linux_amd64 . | ||
ENTRYPOINT ["./caduceus_linux_amd64"] |