All checks were successful
Build & Push Docker Image / build-and-publish (push) Successful in 11s
16 lines
501 B
Bash
16 lines
501 B
Bash
#!/bin/bash
|
|
|
|
# Ensure we're using the correct home directory
|
|
export HOME=/config
|
|
|
|
# Set optimal Java options for RuneLite
|
|
# -Xmx: Maximum heap size (adjust based on container memory)
|
|
# -Xms: Initial heap size (match Xmx for consistent performance)
|
|
# -Dsun.java2d.opengl: Enable OpenGL acceleration for Java2D
|
|
# --mode=AUTO: RuneLite will auto-select GPU mode if available
|
|
exec java \
|
|
-Xmx1024m \
|
|
-Xms1024m \
|
|
-Dsun.java2d.opengl=true \
|
|
-jar /usr/local/bin/RuneLite.jar \
|
|
--mode=AUTO |