Create Dockerfile to export it as Docker Image (#52)

* Added-dockerfile-to-create-docker-image

* README-update

---------

Co-authored-by: Maria Voreakou <voreakou7@gmail.com>
This commit is contained in:
Maria Voreakou
2025-03-06 08:43:41 +01:00
committed by GitHub
parent 4b995c00dd
commit eba18ecda3
4 changed files with 107 additions and 0 deletions

24
start.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
echo "Starting Xvfb virtual display..."
Xvfb :99 -screen 0 1280x800x24 &
sleep 2
echo "Creating minimal Fluxbox config..."
mkdir -p ~/.fluxbox
echo "session.screen0.toolbar.visible: false" > ~/.fluxbox/init # Hide toolbar to avoid errors
echo "Starting Fluxbox window manager..."
fluxbox -log ~/.fluxbox/fb.log & # Redirect logs to a file instead of the console
sleep 2
echo "Starting VNC server..."
x11vnc -display :99 -forever -nopw -bg -rfbport 5990 &
sleep 2
echo "Starting Tkinter application..."
exec python ui.py