From 27366a5331d4c3a442af9b85275d1330843da7a7 Mon Sep 17 00:00:00 2001 From: 0g-peterzhb <158457852+0g-peterzhb@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:26:11 +0800 Subject: [PATCH] add docker support (#241) --- DockerfileStandard | 6 ++++++ DockerfileTurbo | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 DockerfileStandard create mode 100644 DockerfileTurbo diff --git a/DockerfileStandard b/DockerfileStandard new file mode 100644 index 0000000..22b3499 --- /dev/null +++ b/DockerfileStandard @@ -0,0 +1,6 @@ +FROM rust +VOLUME ["/data"] +COPY . . +RUN apt-get update && apt-get install -y clang cmake build-essential pkg-config libssl-dev +RUN cargo build --release +CMD ["./target/release/zgs_node", "--config", "run/config-testnet-standard.toml", "--log", "run/log_config"] \ No newline at end of file diff --git a/DockerfileTurbo b/DockerfileTurbo new file mode 100644 index 0000000..8c14404 --- /dev/null +++ b/DockerfileTurbo @@ -0,0 +1,6 @@ +FROM rust +VOLUME ["/data"] +COPY . . +RUN apt-get update && apt-get install -y clang cmake build-essential pkg-config libssl-dev +RUN cargo build --release +CMD ["./target/release/zgs_node", "--config", "run/config-testnet-turbo.toml", "--log", "run/log_config"] \ No newline at end of file