Skip to content

Commit 44bdca8

Browse files
authored
Update Dockerfile.rootless
Specify UID:GID of nonroot user to fix issue with rootless database
1 parent 25700c1 commit 44bdca8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile.rootless

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ ENV HBOX_STORAGE_SQLITE_URL=/data/homebox.db?_pragma=busy_timeout=2000&_pragma=j
6767

6868
# Install necessary runtime dependencies
6969
RUN apk --no-cache add ca-certificates wget
70-
RUN addgroup -S nonroot && adduser -S nonroot -G nonroot
70+
# Create a nonroot user with UID/GID 65532
71+
RUN addgroup -g 65532 nonroot && adduser -u 65532 -G nonroot -S nonroot
7172

7273
# Create application directory and copy over built Go binary
7374
RUN mkdir /app

0 commit comments

Comments
 (0)