Files
forge-kasm/custom_startup
Ryan Hamilton 3f4c3510d4
All checks were successful
Build & Push Forge-Kasm / docker (push) Successful in 27s
Add custom startup script for Forge and update Dockerfile for integration
2025-06-05 10:56:06 -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/start.sh