Update Dockerfile to be less painful; Set JABY_ENGINE_PATH automatically

This commit is contained in:
Jaby
2025-01-02 21:42:31 +01:00
parent 2a4c0a834c
commit fbe9b91006
6 changed files with 32 additions and 7 deletions

View File

@@ -1 +1,13 @@
podman build -t jaby_engine .
#!/usr/bin/env bash
podman build -t jaby_engine .
if [[ -z "${JABY_ENGINE_PATH}" ]]; then
echo "Setting JABY_ENGINE_PATH to parent folder"
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
JABY_ENGINE_PATH="$(dirname "$SCRIPT_DIR")"
cat << End >> ~/.profile
export JABY_ENGINE_PATH="$JABY_ENGINE_PATH"
End
source ~/.profile
fi