Skip to content

Commit

Permalink
Update Dockerfile.rootless
Browse files Browse the repository at this point in the history
Specify UID:GID of nonroot user to fix issue with rootless database
  • Loading branch information
katosdev authored Jan 8, 2025
1 parent 25700c1 commit 44bdca8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.rootless
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44bdca8

Please sign in to comment.