Files
forge-kasm/custom_startup.sh
Ryan Hamilton 9af6acea74
All checks were successful
Build & Push Forge-Kasm / docker (push) Successful in 31s
Refactor Dockerfile and custom startup script for improved Forge installation and execution
2025-06-06 07:43:20 -05:00

14 lines
295 B
Bash

#!/bin/bash
set -e
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
# Optional: maximize Forge window
if [[ -x $STARTUPDIR/maximize_window.sh ]]; then
bash $STARTUPDIR/maximize_window.sh &
fi
# Run Forge and wait for it to close
exec /opt/forge/forge.sh