github.com/bytom/bytom@v1.1.2-0.20221014091027-bbcba3df6075/Dockerfile (about) 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/bytom/bytom 7 RUN cd /go/src/github.com/bytom/bytom && make bytomd && make bytomcli 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/bytom/bytom/cmd/bytomd/bytomd /usr/local/bin/ 14 COPY --from=builder /go/src/github.com/bytom/bytom/cmd/bytomcli/bytomcli /usr/local/bin/ 15 16 EXPOSE 1999 46656 46657 9888