Skip to content

Commit

Permalink
Add dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Reichert committed Nov 20, 2017
1 parent f97b101 commit f09c7cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM tozny/golang

RUN mkdir -p /go/src/github.com/tozny/e3db-go/

COPY . /go/src/github.com/tozny/e3db-go/
WORKDIR /go/src/github.com/tozny/e3db-go/

RUN glide install && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./cmd/e3db && \
mv e3db /bin/

ENTRYPOINT ["e3db"]

0 comments on commit f09c7cb

Please sign in to comment.