fix(docker): support non-root users with user: (#138)

This commit is contained in:
2026-02-18 16:24:39 +01:00
parent c7d582c908
commit 2536cbe170
3 changed files with 8 additions and 0 deletions
+3
View File
@@ -36,6 +36,9 @@
- Notes display as an info alert box below badges when enabled
- Both settings can be toggled in Admin -> Live Settings panel without container restart
- Fixed consolidated SQL query to include description field for proper notes display in server-side pagination
- **Fixed permission denied when running as non-root user** (Issue #138): Resolved container startup failure when using `user:` directive in docker-compose
- Added `chmod -R a+rX /app` to Dockerfile to ensure all files are readable regardless of build environment
- Added commented `user:` example in `compose.yaml` to document non-root support
### Breaking Changes
+3
View File
@@ -11,6 +11,9 @@ RUN pip install --no-cache-dir -r requirements.txt
# Bricktracker
COPY . .
# Ensure all files are readable by non-root users (supports user: directive in compose)
RUN chmod -R a+rX /app
# Set executable permissions for entrypoint script
RUN chmod +x entrypoint.sh
+2
View File
@@ -3,6 +3,8 @@ services:
container_name: BrickTracker
restart: unless-stopped
image: gitea.baerentsen.space/frederikbaerentsen/bricktracker:latest
# Optional: Run as non-root user (uncomment to enable)
# user: "1000:1000"
ports:
- "3333:3333"
volumes: