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:
24
start.sh
Normal file
24
start.sh
Normal 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
|
||||
Reference in New Issue
Block a user