From 05e82e101533494e5ee518b3aeaa599809ee0d80 Mon Sep 17 00:00:00 2001 From: danyworks Date: Fri, 20 Sep 2024 22:38:41 -0400 Subject: [PATCH] fix --- GoatFile | 7 ++++--- main.spec | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/GoatFile b/GoatFile index bfe3ab4..3dc0adb 100644 --- a/GoatFile +++ b/GoatFile @@ -21,13 +21,14 @@ RUN apk update && apk add --no-cache \ COPY . /app WORKDIR /app -RUN python3 -m pip install --upgrade pip wheel && \ - pip install -r requirements.txt && \ - adduser -D -s /bin/bash "$USER" && \ +RUN adduser -D -s /bin/bash "$USER" && \ chown -R "$USER":"$USER" /app USER "$USER" +RUN python3 -m pip install --upgrade pip wheel && \ + pip install -r requirements.txt + ENV DISPLAY=:99 CMD ["sh", "-c", "mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix && Xvfb :99 -screen 0 1024x768x16 & python main.py"] diff --git a/main.spec b/main.spec index 1101441..560cac7 100644 --- a/main.spec +++ b/main.spec @@ -47,7 +47,7 @@ a = Analysis( (chrome_portable_path, 'chrome_portable'), (chromedriver_path, 'chromedriver') ], - hiddenimports=collect_submodules('tkinter') + collect_submodules('ttkbootstrap'), + hiddenimports=collect_submodules('tkinter') + collect_submodules('ttkbootstrap') + ['win32ctypes.pywin32', 'pywintypes', 'win32api'], hookspath=[], hooksconfig={}, runtime_hooks=[],