Created
January 11, 2019 19:20
-
-
Save hal0x2328/7345b47fc146eee2b7decf3ce87ca939 to your computer and use it in GitHub Desktop.
Updated single Neo node Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:runtime | |
RUN apt-get update \ | |
&& apt-get install -y libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev unzip jq \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN latest_tag=`curl -s https://api.github.com/repos/neo-project/neo-cli/releases/latest | grep tag_name | sed -E 's/.*"([^"]+)".*/\1/'` \ | |
&& curl -vLO https://github.com/neo-project/neo-cli/releases/download/$latest_tag/neo-cli-linux-x64.zip && curl -vLO https://github.com/neo-project/neo-plugins/releases/download/$latest_tag/ApplicationLogs.zip && curl -vLO https://github.com/neo-project/neo-plugins/releases/download/$latest_tag/ImportBlocks.zip | |
RUN unzip neo-cli-linux-x64.zip && rm neo-cli-linux-x64.zip | |
WORKDIR /neo-cli | |
RUN unzip /ApplicationLogs.zip && rm /ApplicationLogs.zip | |
RUN unzip /ImportBlocks.zip && rm /ImportBlocks.zip | |
RUN sed -i'' 's/"Chain": .*/"Chain": "Chain",/' *.json | |
RUN latest_ngd_sync=`curl -s http://sync.ngd.network/config.json | jq -r '.mainnet.full.path'` && curl -vLO $latest_ngd_sync | |
CMD ["/usr/bin/dotnet", "neo-cli.dll", "/rpc /log"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment