Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Create home directory for ldruser (platformdirs compatibility)

LearningCircuit27858a44dc6b
diff --git a/Dockerfile b/Dockerfile
index 351198c5f6..70f525d20d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -91,14 +91,16 @@ ENV DOCKER_ENV=true
# ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
# Create non-root user for running tests (UID 1000 is standard for first non-root user)
-RUN groupadd -r ldruser && useradd -r -g ldruser -u 1000 ldruser
+# Use -m to create home directory for platformdirs compatibility
+RUN groupadd -r ldruser && useradd -r -g ldruser -u 1000 -m -d /home/ldruser ldruser
# Create directories with proper permissions for non-root user
# - puppeteer-cache: for Puppeteer/Chrome cache
# - /app/.config: for application configuration volume
-RUN mkdir -p /app/puppeteer-cache /app/.config/local_deep_research && \
- chown -R ldruser:ldruser /app && \
- chmod -R 755 /app
+# - /home/ldruser/.local: for platformdirs data directory
+RUN mkdir -p /app/puppeteer-cache /app/.config/local_deep_research /home/ldruser/.local/share && \
+ chown -R ldruser:ldruser /app /home/ldruser && \
+ chmod -R 755 /app /home/ldruser
# Install Playwright with Chromium first (before npm packages)
RUN playwright install --with-deps chromium || echo "Playwright install failed, will use Puppeteer's Chrome"