From 01b18d00ffb0857d4e4fb70e53853da688b92b04 Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Tue, 10 Nov 2026 15:04:21 +0000 Subject: [PATCH] Create the image's app user without the system-user flag (closes #248) `useradd -r` with UID 1000 made the image build warn, since 1000 is above the system range. The user keeps UID 1000, so the data directory's owner does not change. Model: opus-5-5 --- Dockerfile | 2 +- TODO.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e54904d..e45c4c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -105,7 +105,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ARG CACHEBUST # Create non-root user -RUN useradd -r -u 1000 -m routewatch +RUN useradd -u 1000 -m routewatch RUN mkdir -p /var/lib/berlin.sneak.app.routewatch && chown routewatch:routewatch /var/lib/berlin.sneak.app.routewatch diff --git a/TODO.md b/TODO.md index 0ab2c7f..eb426ee 100644 --- a/TODO.md +++ b/TODO.md @@ -53,6 +53,9 @@ problem the run finds. # Completed Steps +- 2026-11-10: the image creates the `routewatch` user as a regular user with UID + 1000, so the build no longer warns about the system UID range (closes + https://git.eeqj.de/sneak/routewatch/issues/248). - 2026-11-10: each result of the IP lookup has `geo`, where the address is. It comes from geojs, with DB-IP's City Lite database as the fallback. The geojs answers stay in memory and in `cache.db` for 7 days (closes -- 2.54.0