Update Dockerfile.rootless
Some checks are pending
Docker publish rootless / build (linux/amd64) (push) Waiting to run
Docker publish rootless / build (linux/arm/v7) (push) Waiting to run
Docker publish rootless / build (linux/arm64) (push) Waiting to run
Docker publish rootless / merge (push) Blocked by required conditions
Update Currencies / update-currencies (push) Waiting to run

Specify UID:GID of nonroot user to fix issue with rootless database
This commit is contained in:
Katos
2025-01-08 18:58:40 +00:00
committed by GitHub
parent 25700c12da
commit 44bdca8c21

View File

@@ -67,7 +67,8 @@ ENV HBOX_STORAGE_SQLITE_URL=/data/homebox.db?_pragma=busy_timeout=2000&_pragma=j
# Install necessary runtime dependencies # Install necessary runtime dependencies
RUN apk --no-cache add ca-certificates wget 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 # Create application directory and copy over built Go binary
RUN mkdir /app RUN mkdir /app