OSDN Git Service

update Dockerfile
authorHAOYUatHZ <haoyu@protonmail.com>
Mon, 28 May 2018 01:42:54 +0000 (09:42 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Mon, 28 May 2018 01:42:54 +0000 (09:42 +0800)
Dockerfile
README.md

index d21b92a..4a092d6 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
 
@@ -19,19 +14,3 @@ 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
-
-
-
-## sample commands
-# docker run -v ~/.bytomd:/.bytomd bytom:latest bytomd init --chain_id testnet
-# docker run -it -p 9888:9888 -v ~/.bytomd:/.bytomd bytom:latest
-# bytomcli create-access-token xxx
-# 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>
-
-# docker ps
-# docker exec -it <containerId> bytomcli create-access-token <tokenId>
\ No newline at end of file
index 9b0d9f1..b973483 100644 (file)
--- a/README.md
+++ b/README.md
@@ -481,6 +481,8 @@ Ensure your [Docker](https://www.docker.com/) version is 17.05 or higher.
 $ docker build -t bytom .
 ```
 
+For the usage please refer to [here].
+
 ## Contributing
 
 Thank you for considering helping out with the source code! Any contributions are highly appreciated, and we are grateful for even the smallest of fixes!