2021-01-21 01:33:02 -08:00
|
|
|
FROM golang:1.15-alpine as build
|
|
|
|
|
|
|
|
RUN apk add git gcc libc-dev --no-cache
|
|
|
|
|
2021-05-14 15:18:59 -07:00
|
|
|
ARG ROSETTA_VERSION="v0.6.7"
|
2021-01-21 01:33:02 -08:00
|
|
|
|
|
|
|
# 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
|