From b352184dc6210df66043b19361974393cc933354 Mon Sep 17 00:00:00 2001 From: Peter Zhang Date: Fri, 18 Oct 2024 16:29:02 +0800 Subject: [PATCH] add docker support --- 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