forked from cosmos/relayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsaga.Dockerfile
33 lines (22 loc) · 1022 Bytes
/
saga.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM golang:1.20.4-bullseye AS build-env
WORKDIR /root
RUN apt-get update -y
RUN apt-get install git jq wget -y
COPY . .
# RUN git clone https://github.com/cosmos/relayer.git && cd relayer && git checkout v2.3.1 && make build
RUN make build
FROM golang:1.20.4-bullseye
RUN apt-get update -y
RUN apt-get install ca-certificates jq wget -y
RUN wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 && chmod a+x /usr/local/bin/yq
WORKDIR /root
COPY --from=build-env /root/build/rly /usr/bin/rly
COPY --from=build-env /root/rly/start-rly.sh /root/start-rly.sh
RUN mkdir -p /root/tmp
COPY --from=build-env /root/rly/sevm_111-1.json.example /root/tmp/
COPY --from=build-env /root/rly/sevm_111-2.json.example /root/tmp/
COPY --from=build-env /root/rly/sample-rly.json /root/provider-rly.json
COPY --from=build-env /root/rly/sample-rly.json /root/consumer-rly.json
RUN chmod -R 755 /root/start-rly.sh
EXPOSE 26656 26657 1317 9090 8545 8546
CMD ["bash","/root/start-rly.sh"]