cosmos-sdk/contrib/rosetta/rosetta-cli/Dockerfile
Marko c1ec6453cb
Revert "update-ci-only" (#12882)
* Revert "update-ci-only (#12865)"

This reverts commit b6f867d0b6.

* modify go file
2022-08-10 09:04:24 +02:00

19 lines
410 B
Docker

FROM golang:1.18-alpine as build
RUN apk add git gcc libc-dev --no-cache
ARG ROSETTA_VERSION="v0.7.3"
# 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