From 44bdca8c212a6d4ae1e500e59d14587c9cadc17e Mon Sep 17 00:00:00 2001 From: Katos <7927609+katosdev@users.noreply.github.com> Date: Wed, 8 Jan 2025 18:58:40 +0000 Subject: [PATCH] Update Dockerfile.rootless Specify UID:GID of nonroot user to fix issue with rootless database --- Dockerfile.rootless | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.rootless b/Dockerfile.rootless index 866bf560..37a1858b 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -67,7 +67,8 @@ ENV HBOX_STORAGE_SQLITE_URL=/data/homebox.db?_pragma=busy_timeout=2000&_pragma=j # Install necessary runtime dependencies RUN apk --no-cache add ca-certificates wget -RUN addgroup -S nonroot && adduser -S nonroot -G nonroot +# Create a nonroot user with UID/GID 65532 +RUN addgroup -g 65532 nonroot && adduser -u 65532 -G nonroot -S nonroot # Create application directory and copy over built Go binary RUN mkdir /app