From 88d4ed37f262f8c287927e9c77ee849a9f13249c Mon Sep 17 00:00:00 2001 From: str-mv Date: Thu, 07 May 2020 15:00:35 +0000 Subject: [PATCH] docker files update --- --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,6 @@ # Get project and run it RUN git clone https://github.com/usetech-llc/nft_parachain -RUN cd nft_parachain && cargo build -RUN cd nft_parachain && cargo test --all -RUN cd nft_parachain && cargo run -- --dev \ No newline at end of file +WORKDIR /nft_parachain +RUN cargo build +RUN cargo test --all \ No newline at end of file --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,4 +7,11 @@ - 9944:9944 build: context: ./ - dockerfile: Dockerfile \ No newline at end of file + dockerfile: Dockerfile + volumes: + - chain-data:/chain-data/ + command: + cargo run -- --dev --ws-external --rpc-external --base-path=./chain-data + +volumes: + chain-data: \ No newline at end of file -- gitstuff