Update Dockerfile to be less painful; Set JABY_ENGINE_PATH automatically
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user