diff --git a/.gitignore b/.gitignore index aa2d529..565b24f 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,8 @@ yalc.lock # ignore Rust compiler files /backend-rs/target /bin/backend +/backend/target +/backend/out # packaged teasers *.zip diff --git a/backend/Dockerfile b/backend/Dockerfile index f46e170..f1a0ed3 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/backend/build.sh b/backend/build.sh index 9f60798..c939bde 100755 --- a/backend/build.sh +++ b/backend/build.sh @@ -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 diff --git a/backend/entrypoint.sh b/backend/entrypoint.sh index af04d23..72b2a00 100755 --- a/backend/entrypoint.sh +++ b/backend/entrypoint.sh @@ -5,4 +5,6 @@ echo "Container's IP address: `awk 'END{print $1}' /etc/hosts`" cd /backend -make \ No newline at end of file +cargo build --release +mkdir -p out +cp target/release/fantastic-rs out/backend \ No newline at end of file