Added separate build-docker.sh

This commit is contained in:
TrainDoctor 2022-08-23 14:26:05 -07:00
parent bed6b096be
commit aaf6802e69
2 changed files with 6 additions and 3 deletions

5
backend/build-docker.sh Normal file
View 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

View file

@ -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