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