github.com/metacurrency/holochain@v0.1.0-alpha-26.0.20200915073418-5c83169c9b5b/docker/Dockerfile (about)

     1  #
     2  # Dockerfile using a multi-stage build
     3  #
     4  
     5  # Stage 0 (build) - Build the holochain tools
     6  
     7  FROM golang as build
     8  ARG BRANCH=develop
     9  RUN go get -d -v github.com/holochain/holochain-proto
    10  RUN cd $GOPATH/src/github.com/holochain/holochain-proto && git checkout $BRANCH && make
    11  
    12  # Stage 1 - Copy holochain tools into a minimal image
    13  
    14  FROM debian:buster-slim
    15  
    16  COPY --from=build /go/bin/bs /usr/local/bin/bs
    17  COPY --from=build /go/bin/hcadmin /usr/local/bin/hcadmin
    18  COPY --from=build /go/bin/hcd /usr/local/bin/hcd
    19  COPY --from=build /go/bin/hcdev /usr/local/bin/hcdev
    20  
    21  CMD ["/bin/bash"]