1
0

Rejigger things to run both game and service as default container CMD

This commit is contained in:
vlad 2024-10-06 15:15:46 -07:00
parent 9a04157f6e
commit daa7d799d2
4 changed files with 14 additions and 0 deletions

View File

@ -3,3 +3,7 @@ RUN pacman -Sy --noconfirm xorg-server-xvfb xdotool scrot python-flask && pacman
RUN mkdir -p /root/.local/share/
ADD profile /root/.local/share/IntoTheBreach
ADD .generated/game/ /breach
ADD interface /interface
ADD game-init /game-init
RUN chmod +x /game-init
CMD /game-init

8
game-init Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
export DISPLAY=:1337
cd /breach/Into*
xvfb-run -n 1337 -s "-screen 0 1280x720x24" ./Breach &
/interface/flaskstuff.py

2
flaskstuff.py → interface/flaskstuff.py Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
from flask import Flask, send_file
import os
import subprocess