OSDN Git Service

Politic dashboard (#1711)
[bytom/bytom.git] / Dockerfile
index ab88607..40331c2 100644 (file)
@@ -1,8 +1,3 @@
-# build the image
-# docker build -t bytom .
-
-
-
 # Build Bytom in a stock Go builder container
 FROM golang:1.9-alpine as builder
 
@@ -20,18 +15,4 @@ COPY --from=builder /go/src/github.com/bytom/cmd/bytomcli/bytomcli /usr/local/bi
 
 EXPOSE 1999 46656 46657 9888
 
-
-
-
-# if u r running the container the first time plz init it with 'bytomd init --chain_id testnet' and then run 'bytomd node --help' for further instructions.
-
-
-## sample commands
-# docker run -it -p 9888:9888 -v ~/.bytomd:/.bytomd bytom:latest
-# bytomd init --chain_id testnet
-# bytomd node --web.closed --auth.disable
-# exit
-
-# docker run -d -p 9888:9888 -v ~/.bytomd:/.bytomd bytom:latest bytomd node --web.closed --auth.disable
-# docker container ls
-# docker stop <containerId>
\ No newline at end of file
+CMD ["sh", "-c", "bytomd init --chain_id solonet ; bytomd node  --auth.disable --wallet.txindex"]
\ No newline at end of file