forked from classic-terra/core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
shared.Dockerfile
32 lines (23 loc) · 691 Bytes
/
shared.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
FROM golang:1.20 AS go-builder
# Install minimum necessary dependencies, build Cosmos SDK, remove packages
RUN apt update
RUN apt install -y curl git build-essential
# debug: for live editting in the image
RUN apt install -y vim
WORKDIR /code
COPY . /code/
RUN LEDGER_ENABLED=false make build
RUN cp /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/api/libwasmvm.so /lib/libwasmvm.so
FROM ubuntu:20.04
WORKDIR /root
COPY --from=go-builder /code/build/terrad /usr/local/bin/terrad
COPY --from=go-builder /lib/libwasmvm.so /lib/libwasmvm.so
# rest server
EXPOSE 1317
# grpc
EXPOSE 9090
# tendermint p2p
EXPOSE 26656
# tendermint rpc
EXPOSE 26657
CMD ["/usr/local/bin/terrad", "version"]