forked from fetchai/fetchd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (39 loc) · 1.57 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM golang:1.14-buster as builder
# Set up dependencies
ENV PACKAGES jq curl wget jq file make git libgmp-dev gcc g++ swig libboost-serialization-dev
RUN apt-get update && \
apt-get install -y $PACKAGES && \
git clone https://github.com/herumi/mcl && cd mcl && make install && ldconfig
WORKDIR /cosmwasm
COPY . .
RUN make install
# we also (temporarily?) build the testnet binaries here
RUN LEDGER_ENABLED=false make build-coral
RUN LEDGER_ENABLED=false make build-gaiaflex
# ##################################
FROM debian:buster as hub
# Set up dependencies
ENV PACKAGES jq curl libgmpxx4ldbl libboost-serialization1.67.0
RUN apt-get update && \
apt-get install -y $PACKAGES
COPY --from=builder /go/pkg/mod/github.com/\!cosm\!wasm/go-cosmwasm@v*/api/libgo_cosmwasm.so /usr/lib/libgo_cosmwasm.so
COPY --from=builder /go/bin/fetchcli /usr/bin/fetchcli
COPY --from=builder /go/bin/fetchd /usr/bin/fetchd
COPY --from=builder /usr/local/lib/libmcl.so /usr/lib
COPY entrypoints/entrypoint.sh /usr/bin/entrypoint.sh
# testnet
COPY --from=builder /cosmwasm/build/coral /usr/bin/coral
COPY --from=builder /cosmwasm/build/corald /usr/bin/corald
COPY --from=builder /cosmwasm/build/gaiaflex /usr/bin/gaiaflex
COPY --from=builder /cosmwasm/build/gaiaflexd /usr/bin/gaiaflexd
VOLUME /root/.fetchd
VOLUME /root/secret-temp-config
ENTRYPOINT [ "/usr/bin/entrypoint.sh" ]
EXPOSE 1317
EXPOSE 26656
EXPOSE 26657
STOPSIGNAL SIGTERM
# ##################################
FROM hub as gcr
COPY ./entrypoints/run-node.sh /usr/bin/run-node.sh
COPY ./entrypoints/run-server.sh /usr/bin/run-server.sh