- cpulimit now reapplies when aot process restarts

- reduce resolution to 640x480 (to reduce CPU usage)
- renamed restart-aot-crash.sh to aot-monitor.sh
- added new env variable RESOLUTION for setting x11 and AgeOfTime game resolution on container startup (so it's easy to change)
- updated readme
This commit is contained in:
2024-03-10 21:46:24 -06:00
parent 7d447a558d
commit ea006568e2
7 changed files with 93 additions and 15 deletions
+3 -1
View File
@@ -9,6 +9,8 @@ ENV WINEARCH win64
ENV DISPLAY :0
ENV WINEPREFIX /root/prefix32
ENV AOTDIR "$WINEPREFIX/drive_c/Program Files (x86)/AgeOfTime"
ENV RESOLUTION "1024x768x24"
ENV AOT_CPU_LIMIT="0"
WORKDIR /root/
COPY webaudio.js /root/
@@ -66,7 +68,7 @@ RUN dpkg --add-architecture i386 && \
document.getElementsByTagName('canvas')[0].addEventListener('keydown', e => { wa.start(); });" \
/root/novnc/vnc_lite.html
COPY restart-aot-crash.sh /root/restart-aot-crash.sh
COPY aot-monitor.sh /root/aot-monitor.sh
COPY start-aot.sh /root/start-aot.sh
COPY start.sh /root/start.sh
RUN chmod +x /root/*.sh && \