Rejigger things to run both game and service as default container CMD
This commit is contained in:
parent
9a04157f6e
commit
daa7d799d2
@ -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
8
game-init
Normal 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
2
flaskstuff.py → interface/flaskstuff.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from flask import Flask, send_file
|
||||
import os
|
||||
import subprocess
|
Loading…
Reference in New Issue
Block a user