github.com/alexdevranger/node-1.8.27@v0.0.0-20221128213301-aa5841e41d2d/swarm/docker/Dockerfile (about) 1 FROM golang:1.11-alpine as builder 2 3 ARG VERSION 4 5 RUN apk add --update git gcc g++ linux-headers 6 RUN mkdir -p $GOPATH/src/github.com/ethereum && \ 7 cd $GOPATH/src/github.com/ethereum && \ 8 git clone https://github.com/ethersphere/go-ethereum && \ 9 cd $GOPATH/src/github.com/alexdevranger/node-1.8.27 && \ 10 git checkout ${VERSION} && \ 11 go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/swarm && \ 12 go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/swarm/swarm-smoke && \ 13 go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/swarm/global-store && \ 14 go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/gdubx 15 16 17 FROM alpine:3.8 as swarm-smoke 18 WORKDIR / 19 COPY --from=builder /go/bin/swarm-smoke / 20 ADD run-smoke.sh /run-smoke.sh 21 ENTRYPOINT ["/run-smoke.sh"] 22 23 FROM alpine:3.8 as swarm-global-store 24 WORKDIR / 25 COPY --from=builder /go/bin/global-store / 26 ENTRYPOINT ["/global-store"] 27 28 FROM alpine:3.8 as swarm 29 WORKDIR / 30 COPY --from=builder /go/bin/swarm /go/bin/gdubx / 31 ADD run.sh /run.sh 32 ENTRYPOINT ["/run.sh"]