Ref: #7492 Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com> Co-authored-by: Alessio Treglia <alessio@tendermint.com> Co-authored-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com> Co-authored-by: Robert Zaremba <robert@zaremba.ch> Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
19 lines
411 B
Docker
19 lines
411 B
Docker
FROM golang:1.15-alpine as build
|
|
|
|
RUN apk add git gcc libc-dev --no-cache
|
|
|
|
ARG ROSETTA_VERSION="v0.5.23"
|
|
|
|
# build rosetta CLI
|
|
WORKDIR /rosetta
|
|
RUN git clone https://github.com/coinbase/rosetta-cli .
|
|
RUN git checkout tags/$ROSETTA_VERSION
|
|
RUN go build -o rosetta-cli ./main.go
|
|
|
|
FROM alpine
|
|
RUN apk add gcc libc-dev python3 --no-cache
|
|
|
|
ENV PATH=$PATH:/bin
|
|
|
|
COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli
|