git.delta.rocks / unique-network / refs/commits / 5fb64643a728

difftreelog

Fix volume in docker

Greg Zaitsev2020-05-07parent: #6eb7e2b.patch.diff
in: master

3 files changed

modifiedDockerfilediffbeforeafterboth
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,4 +13,9 @@
 RUN git clone https://github.com/usetech-llc/nft_parachain
 WORKDIR /nft_parachain
 RUN cargo build
-RUN cargo test --all
\ No newline at end of file
+RUN cargo test --all
+
+# Copy and run start script
+COPY ["./run.sh", "./run.sh"]
+RUN chmod +x ./run.sh
+CMD ["bash", "-c", "./run.sh"]
modifieddocker-compose.ymldiffbeforeafterboth
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -9,9 +9,4 @@
       context: ./
       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
+      - ./chain-data:/chain-data
addedrun.shdiffbeforeafterboth

no changes