Update Docker container to fix issues and pull latest code at runtime

This commit is contained in:
Ircama
2025-06-07 13:52:38 +02:00
parent 21c8792714
commit 1e0a634ed7
5 changed files with 76 additions and 40 deletions

View File

@@ -1,4 +1,12 @@
#!/bin/bash
set -e
# Update repo at runtime
if [ ! -d /app/.git ]; then
git clone https://github.com/Ircama/epson_print_conf.git /app
else
cd /app && git pull
fi
echo "Starting Xvfb virtual display..."
Xvfb :99 -screen 0 1280x800x24 &
@@ -21,4 +29,4 @@ x11vnc -display :99 -forever -nopw -bg -rfbport 5990 &
sleep 2
echo "Starting Tkinter application..."
exec python ui.py
exec python3 ui.py