diff --git a/Dockerfile.cuda b/Dockerfile.cuda index 76d6c4eb2..6b51bc533 100644 --- a/Dockerfile.cuda +++ b/Dockerfile.cuda @@ -94,9 +94,13 @@ RUN curl -fsSL https://deno.land/install.sh | sh \ && deno --version # Create default user (will be modified at runtime if needed) -# Use 10001 to avoid conflicts with existing users in CUDA base image -RUN groupadd -g 10001 appuser \ - && useradd -m -u 10001 -g 10001 appuser \ +# Previously used 10001 to avoid conflicts with existing user in CUDA base image +# Ubuntu 24.04 ships with a default 'ubuntu' user at UID/GID 1000, causing permission conflicts with default appuser account. +# Remove it first, then create appuser at UID 1000 to match the entrypoint script. +RUN userdel -r ubuntu 2>/dev/null || true \ + && groupdel ubuntu 2>/dev/null || true \ + && groupadd -g 1000 appuser \ + && useradd -m -u 1000 -g 1000 appuser \ && mkdir -p /app/data/uploads /app/data/transcripts \ && chown -R appuser:appuser /app diff --git a/Dockerfile.cuda.12.9 b/Dockerfile.cuda.12.9 index f8398a23d..6d91b8b0e 100644 --- a/Dockerfile.cuda.12.9 +++ b/Dockerfile.cuda.12.9 @@ -96,9 +96,13 @@ RUN curl -fsSL https://deno.land/install.sh | sh \ && deno --version # Create default user (will be modified at runtime if needed) -# Use 10001 to avoid conflicts with existing users in CUDA base image -RUN groupadd -g 10001 appuser \ - && useradd -m -u 10001 -g 10001 appuser \ +# Previously used 10001 to avoid conflicts with existing user in CUDA base image +# Ubuntu 24.04 ships with a default 'ubuntu' user at UID/GID 1000, causing permission conflicts with default appuser account. +# Remove it first, then create appuser at UID 1000 to match the entrypoint script. +RUN userdel -r ubuntu 2>/dev/null || true \ + && groupdel ubuntu 2>/dev/null || true \ + && groupadd -g 1000 appuser \ + && useradd -m -u 1000 -g 1000 appuser \ && mkdir -p /app/data/uploads /app/data/transcripts \ && chown -R appuser:appuser /app diff --git a/README.md b/README.md index 3cc8f8884..7bf13d5f8 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,10 @@ Scriberr is an open-source, and completely offline audio transcription applicati Scriberr Desktop App + +## Why this fork? +Hi everyone, this is a simple fork of Scriberr put together to make some simple dockerfile fixes to resolve UID permission conflicts in the CUDA 12.9 version of the image. At present, the current build with CUDA 12.9 on blackwell gpus errors out due to these permission conflicts, I can confirm that my version here is tested and working on an RTX 5090 system. I have no intentions of maintaining this package, this was a one off contribution. I have accordingly committed these changes to the original developer so that they can update the original repository and all can benefit :) + ## Update on project status Hi everyone, It’s been a while since the last update, so I wanted to share what’s been going on with Scriberr.