github.com/Finschia/finschia-sdk@v0.48.1/contrib/rosetta/rosetta-cli/Dockerfile (about) 1 FROM golang:1.20-alpine as build 2 3 RUN apk add git gcc libc-dev --no-cache 4 5 ARG ROSETTA_VERSION="v0.6.7" 6 7 # build rosetta CLI 8 WORKDIR /rosetta 9 RUN git clone https://github.com/coinbase/rosetta-cli . 10 RUN git checkout tags/$ROSETTA_VERSION 11 RUN go build -o rosetta-cli ./main.go 12 13 FROM alpine 14 RUN apk add gcc libc-dev python3 --no-cache 15 16 ENV PATH=$PATH:/bin 17 18 COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli