Added separate build-docker.sh
This commit is contained in:
parent
bed6b096be
commit
aaf6802e69
2 changed files with 6 additions and 3 deletions
5
backend/build-docker.sh
Normal file
5
backend/build-docker.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
sudo bash build-docker.sh
|
Loading…
Reference in a new issue