OSDN Git Service

update dashboard:politic (#1715)
[bytom/bytom.git] / Dockerfile
index a5254d0..40331c2 100644 (file)
@@ -1,6 +1,3 @@
-# build the image
-# docker build -t bytom .
-
 # Build Bytom in a stock Go builder container
 FROM golang:1.9-alpine as builder
 
@@ -17,11 +14,5 @@ COPY --from=builder /go/src/github.com/bytom/cmd/bytomd/bytomd /usr/local/bin/
 COPY --from=builder /go/src/github.com/bytom/cmd/bytomcli/bytomcli /usr/local/bin/
 
 EXPOSE 1999 46656 46657 9888
-RUN bytomd init --chain_id testnet
-CMD ["bytomd"]
 
-# sample command
-# docker run -p 9888:9888 bytom:latest bytomd node --web.closed --auth.disable
-# docker run -d -p 9888:9888 bytom:latest bytomd node --web.closed --auth.disable
-# docker container ls
-# docker stop [CONTAINER ID]
\ 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