From aaf6802e6936e7675b7e8eaa76c4a3d73bc6ad09 Mon Sep 17 00:00:00 2001 From: TrainDoctor Date: Tue, 23 Aug 2022 14:26:05 -0700 Subject: [PATCH] Added separate build-docker.sh --- backend/build-docker.sh | 5 +++++ backend/entrypoint.sh | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 backend/build-docker.sh diff --git a/backend/build-docker.sh b/backend/build-docker.sh new file mode 100644 index 0000000..51f1a0a --- /dev/null +++ b/backend/build-docker.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +sudo $HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo build --release +mkdir -p out +cp target/release/fantastic-rs out/backend \ No newline at end of file diff --git a/backend/entrypoint.sh b/backend/entrypoint.sh index 0f53314..db4cf23 100755 --- a/backend/entrypoint.sh +++ b/backend/entrypoint.sh @@ -5,6 +5,4 @@ echo "Container's IP address: `awk 'END{print $1}' /etc/hosts`" cd /backend -/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo build --release -mkdir -p out -cp target/release/fantastic-rs out/backend \ No newline at end of file +sudo bash build-docker.sh \ No newline at end of file