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>
33 lines
587 B
Docker
33 lines
587 B
Docker
FROM golang:1.15-alpine as build
|
|
|
|
RUN apk add --no-cache tar
|
|
|
|
# prepare node data
|
|
WORKDIR /node
|
|
COPY ./contrib/rosetta/node/data.tar.gz data.tar.gz
|
|
RUN tar -zxvf data.tar.gz -C .
|
|
|
|
# build simd
|
|
WORKDIR /simd
|
|
COPY . ./
|
|
RUN go build -o simd ./simapp/simd/
|
|
|
|
FROM alpine
|
|
RUN apk add gcc libc-dev python3 --no-cache
|
|
|
|
ENV PATH=$PATH:/bin
|
|
|
|
COPY --from=build /simd/simd /bin/simd
|
|
|
|
WORKDIR /rosetta
|
|
COPY ./contrib/rosetta/configuration ./
|
|
RUN chmod +x run_tests.sh
|
|
RUN chmod +x send_funds.sh
|
|
RUN chmod +x faucet.py
|
|
|
|
COPY --from=build /node/root /root/
|
|
WORKDIR /root/.simapp
|
|
|
|
RUN chmod -R 0777 ./
|
|
|