2019-05-16 13:10:14 -07:00
|
|
|
# Simple usage with a mounted data directory:
|
|
|
|
# > docker build -t gaia .
|
2019-11-19 13:29:50 -08:00
|
|
|
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.wasmd:/root/.wasmd -v ~/.wasmcli:/root/.wasmcli gaia wasmd init
|
|
|
|
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.wasmd:/root/.wasmd -v ~/.wasmcli:/root/.wasmcli gaia wasmd start
|
2020-01-21 05:55:17 -08:00
|
|
|
FROM golang:1.13-buster AS build-env
|
2019-05-16 13:10:14 -07:00
|
|
|
|
2020-01-21 08:07:43 -08:00
|
|
|
# Install minimum necessary dependencies, build Cosmos SDK, remove packages
|
|
|
|
RUN apt update
|
|
|
|
RUN apt install -y curl git build-essential
|
2020-01-22 06:18:11 -08:00
|
|
|
# debug: for live editting in the image
|
|
|
|
RUN apt install -y vim
|
2019-05-16 13:10:14 -07:00
|
|
|
|
|
|
|
# Set working directory for the build
|
2019-11-19 13:29:50 -08:00
|
|
|
WORKDIR /go/src/github.com/cosmwasm/wasmd
|
2019-05-16 13:10:14 -07:00
|
|
|
|
|
|
|
# Add source files
|
|
|
|
COPY . .
|
2020-01-21 08:07:43 -08:00
|
|
|
#
|
2020-01-21 05:55:17 -08:00
|
|
|
RUN make tools
|
|
|
|
RUN make install
|
2019-05-16 13:10:14 -07:00
|
|
|
|
2020-01-21 10:26:14 -08:00
|
|
|
COPY docker/* /opt/
|
|
|
|
RUN chmod +x /opt/*.sh
|
|
|
|
|
|
|
|
WORKDIR /opt
|
|
|
|
|
|
|
|
# rest server
|
|
|
|
EXPOSE 1317
|
|
|
|
# tendermint p2p
|
|
|
|
EXPOSE 26656
|
|
|
|
# tendermint rpc
|
|
|
|
EXPOSE 26657
|
|
|
|
|
2019-11-19 13:29:50 -08:00
|
|
|
CMD ["wasmd"]
|