From 676079f1e57e3900bb681fb3fc49dde05f209d51 Mon Sep 17 00:00:00 2001 From: Michael Manganiello Date: Fri, 8 Aug 2025 15:09:27 -0300 Subject: [PATCH] fix: Docker build and init fixes * Added `linux-headers` back, but only for development stage. * Fixed initialization script, as `uv` is not included in the final Docker image. * Initialize variable `ENABLE_SCHEDULED_UPDATE_LAUNCHBOX_METADATA`. --- docker/Dockerfile | 4 ++++ docker/init_scripts/init | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 34530e21f..0fafbf4c8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -53,6 +53,10 @@ RUN uv sync --locked --no-cache FROM backend-build AS backend-dev-build +# linux-headers is needed to install psutil +RUN apk add --no-cache \ + linux-headers + RUN uv sync --locked --no-cache --all-extras diff --git a/docker/init_scripts/init b/docker/init_scripts/init index 9218d1d85..e563a6c96 100755 --- a/docker/init_scripts/init +++ b/docker/init_scripts/init @@ -11,6 +11,7 @@ LOGLEVEL="${LOGLEVEL:="info"}" # make it possible to disable the inotify watcher process ENABLE_RESCAN_ON_FILESYSTEM_CHANGE="${ENABLE_RESCAN_ON_FILESYSTEM_CHANGE:="false"}" ENABLE_SCHEDULED_RESCAN="${ENABLE_SCHEDULED_RESCAN:="false"}" +ENABLE_SCHEDULED_UPDATE_LAUNCHBOX_METADATA="${ENABLE_SCHEDULED_UPDATE_LAUNCHBOX_METADATA:="false"}" ENABLE_SCHEDULED_UPDATE_SWITCH_TITLEDB="${ENABLE_SCHEDULED_UPDATE_SWITCH_TITLEDB:="false"}" # if REDIS_HOST is set, we assume that an external redis is used @@ -203,7 +204,7 @@ start_bin_watcher() { info_log "Starting watcher" watchfiles \ --target-type command \ - 'uv run python watcher.py' \ + 'python3 watcher.py' \ /romm/library & WATCHER_PID=$! echo "${WATCHER_PID}" >/tmp/watcher.pid