OSDN Git Service

new repo
[bytom/vapor.git] / Dockerfile
1 # Build Bytom in a stock Go builder container
2 FROM golang:1.9-alpine as builder
3
4 RUN apk add --no-cache make git
5
6 ADD . /go/src/github.com/vapor
7 RUN cd /go/src/github.com/vapor && make vapor && make vaporcli
8
9 # Pull Bytom into a second stage deploy alpine container
10 FROM alpine:latest
11
12 RUN apk add --no-cache ca-certificates
13 COPY --from=builder /go/src/github.com/vapor/cmd/vapor/vapor /usr/local/bin/
14 COPY --from=builder /go/src/github.com/vapor/cmd/vaporcli/vaporcli /usr/local/bin/
15
16 EXPOSE 1999 46656 46657 9888