Changed entrypoint.sh to run cargo rather than cross

This commit is contained in:
TrainDoctor 2022-08-23 12:26:43 -07:00
parent 1b06bdc812
commit e73ee0f2a1
4 changed files with 8 additions and 10 deletions

2
.gitignore vendored
View file

@ -42,6 +42,8 @@ yalc.lock
# ignore Rust compiler files
/backend-rs/target
/bin/backend
/backend/target
/backend/out
# packaged teasers
*.zip

View file

@ -1,9 +1,3 @@
# we support images for building with a vanilla SteamOS base,
# or versions with ootb support for rust or go
# developers can also customize these images via this Dockerfile
#FROM ghcr.io/steamdeckhomebrew/holo-toolchain-rust:latest
#FROM ghcr.io/steamdeckhomebrew/holo-toolchain-go:latest
FROM ghcr.io/steamdeckhomebrew/holo-base:latest
FROM ghcr.io/steamdeckhomebrew/holo-toolchain-rust:latest
# entrypoint.sh should always be located in the backend folder
ENTRYPOINT [ "/backend/entrypoint.sh" ]

View file

@ -1,5 +1,5 @@
#!/bin/bash
cross build --release
mkdir ../bin
cp ./target/release/fantastic-rs ../bin/backend
mkdir out
cp ./target/release/fantastic-rs out/backend

View file

@ -5,4 +5,6 @@ echo "Container's IP address: `awk 'END{print $1}' /etc/hosts`"
cd /backend
make
cargo build --release
mkdir -p out
cp target/release/fantastic-rs out/backend