Skip to content

Commit

Permalink
Add Dockerfile for CLI (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwalls authored and vancexu committed May 29, 2018
1 parent 0aef123 commit 076fb3d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang:1.9 as go-builder

RUN apt-get update && apt-get install -y git

# Install glide
WORKDIR $GOPATH/src/github.com/Masterminds
RUN git clone https://github.com/Masterminds/glide.git
RUN cd glide && git checkout v0.12.3 && make bootstrap-dist && make install

RUN mkdir -p $GOPATH/src/github.com/uber/cadence
COPY . $GOPATH/src/github.com/uber/cadence
WORKDIR $GOPATH/src/github.com/uber/cadence
RUN make cadence

FROM phusion/baseimage:0.10.1

COPY --from=go-builder /go/src/github.com/uber/cadence/cadence .
COPY --from=go-builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

ENTRYPOINT ["./cadence"]

0 comments on commit 076fb3d

Please sign in to comment.