Skip to content

Commit

Permalink
use slim image for hyperbridge docker node
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Sep 24, 2023
1 parent a28553f commit d46565b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parachain/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ fn load_spec(id: &str) -> std::result::Result<Box<dyn ChainSpec>, String> {
let id = u32::from_str(id).expect("can't parse Id into u32");
Box::new(chain_spec::development_config(id))
},
"gargantuan" => Box::new(chain_spec::ChainSpec::from_json_bytes(include_bytes!("../../chainspec/gargantuan-raw.json"))),
"gargantuan" => Box::new(chain_spec::ChainSpec::from_json_bytes(
include_bytes!("../../chainspec/gargantuan-raw.json").to_vec(),
)?),
"" | "local" => Box::new(chain_spec::local_testnet_config()),
path => Box::new(chain_spec::ChainSpec::from_json_file(std::path::PathBuf::from(path))?),
})
Expand Down
8 changes: 8 additions & 0 deletions scripts/docker/slim.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM docker.io/library/debian:bullseye-slim

WORKDIR /

COPY ./hyperbridge ./


ENTRYPOINT ["./hyperbridge"]

0 comments on commit d46565b

Please sign in to comment.