From db25a828f6bb05888556afdbb17b84e34c8c1f8b Mon Sep 17 00:00:00 2001 From: wujian0327 <353981613@qq.com> Date: Thu, 5 Sep 2024 13:21:08 +0800 Subject: [PATCH] update aries dockerFile --- docker/aries-engine-dockerfile | 3 +++ docker/start-aries.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 docker/start-aries.sh diff --git a/docker/aries-engine-dockerfile b/docker/aries-engine-dockerfile index 2d14d8c5..c7d0e161 100644 --- a/docker/aries-engine-dockerfile +++ b/docker/aries-engine-dockerfile @@ -43,6 +43,9 @@ ENV PATH=/root/.cargo/bin:$PATH COPY . . # build +RUN cargo clean +RUN git submodule deinit --all -f +RUN git submodule update --init --recursive RUN if [ "$BUILD_TYPE" = "release" ]; then \ cargo build -p aries --release; \ else \ diff --git a/docker/start-aries.sh b/docker/start-aries.sh old mode 100644 new mode 100755 index 389cb555..f197878f --- a/docker/start-aries.sh +++ b/docker/start-aries.sh @@ -5,7 +5,7 @@ CONFIG_FILE="$MEGA_BASE_DIR/etc/config.toml" if [ -f "$CONFIG_FILE" ]; then echo "Using config file: $CONFIG_FILE" - exec /usr/local/bin/aries -c "$CONFIG_FILE" + exec /usr/local/bin/aries -c "$CONFIG_FILE" --host 0.0.0.0 --hub-host gitmono.org else - exec /usr/local/bin/aries + exec /usr/local/bin/aries --host 0.0.0.0 --hub-host gitmono.org fi \ No newline at end of file