~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: resolve Hadolint Dockerfile analysis issues
LearningCircuit1d01a82bcad5
diff --git a/.hadolint.yaml b/.hadolint.yamlnew file mode 100644index 0000000000..d2a602c619--- /dev/null+++ b/.hadolint.yaml@@ -0,0 +1,17 @@+# Hadolint configuration file+# See https://github.com/hadolint/hadolint#configure++# Ignore rules that are impractical for our use case+ignored:+ # DL3008: Pin versions in apt-get install+ # Rationale: Pinning apt package versions is impractical because:+ # - Debian package versions change frequently between releases+ # - We use digest-pinned base images for reproducibility+ # - Pinned versions would require constant maintenance+ - DL3008++ # DL3013: Pin versions in pip+ # Rationale: We install build tools (pdm, playwright) where we want+ # the latest compatible version. The actual application dependencies+ # are pinned in pdm.lock which provides reproducibility.+ - DL3013diff --git a/Dockerfile b/Dockerfileindex 62d39aeea7..4338a54050 100644--- a/Dockerfile+++ b/Dockerfile@@ -3,22 +3,27 @@####FROM python:3.13.9-slim@sha256:326df678c20c78d465db501563f3492d17c42a4afe33a1f2bf5406a1d56b0e86 AS builder-base+# Set shell to bash with pipefail for safer pipe handling+SHELL ["/bin/bash", "-o", "pipefail", "-c"]+# Install system dependencies for SQLCipher and Node.js for frontend buildRUN apt-get update && apt-get upgrade -y \- && apt-get install -y \+ && apt-get install -y --no-install-recommends \libsqlcipher-dev \sqlcipher \libsqlcipher1 \build-essential \pkg-config \curl \+ ca-certificates \# Note: NodeSource install script from trusted source (https://github.com/nodesource/distributions)&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \- && apt-get install -y nodejs \+ && apt-get install -y --no-install-recommends nodejs \&& rm -rf /var/lib/apt/lists/*# Install dependencies and tools-RUN pip3 install --upgrade pip && pip install pdm playwright+RUN pip3 install --no-cache-dir --upgrade pip \+ && pip install --no-cache-dir pdm playwright# disable update checkENV PDM_CHECK_UPDATE=false@@ -38,13 +43,11 @@ COPY vite.config.js vite.config.js####FROM builder-base AS builder-# Install npm dependencies and build frontend assets-RUN npm install-RUN npm run build--# Install Python dependencies using PDM+# Install npm dependencies, build frontend, and install Python dependencies# PDM will automatically select the correct SQLCipher package based on platform-RUN pdm install --prod --no-editable+RUN npm install \+ && npm run build \+ && pdm install --prod --no-editable####@@ -52,9 +55,13 @@ RUN pdm install --prod --no-editable####FROM builder-base AS ldr-test+# Set shell to bash with pipefail for safer pipe handling+# Note: Explicitly set even though inherited from builder-base for hadolint static analysis+SHELL ["/bin/bash", "-o", "pipefail", "-c"]+# Install runtime dependencies for SQLCipher, Node.js, and testing toolsRUN apt-get update && apt-get upgrade -y \- && apt-get install -y \+ && apt-get install -y --no-install-recommends \sqlcipher \libsqlcipher1 \curl \@@ -81,7 +88,7 @@ RUN apt-get update && apt-get upgrade -y \xdg-utils \# Note: NodeSource install script from trusted source (https://github.com/nodesource/distributions)&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \- && apt-get install -y nodejs \+ && apt-get install -y --no-install-recommends nodejs \&& rm -rf /var/lib/apt/lists/*# Set up Puppeteer environment@@ -108,9 +115,6 @@ RUN npm installWORKDIR /install/tests/ui_testsRUN npm install-# Use pipefail to catch errors in piped commands-SHELL ["/bin/bash", "-o", "pipefail", "-c"]-# Set CHROME_BIN to help Puppeteer find Chrome from Playwright# Try to find and set Chrome binary path from Playwright's installationRUN CHROME_PATH=$(find /root/.cache/ms-playwright -name chrome -type f 2>/dev/null | head -1) && \@@ -148,9 +152,12 @@ ENV PATH="/install/.venv/bin:$PATH"###FROM python:3.13.9-slim@sha256:326df678c20c78d465db501563f3492d17c42a4afe33a1f2bf5406a1d56b0e86 AS ldr+# Set shell to bash with pipefail for safer pipe handling+SHELL ["/bin/bash", "-o", "pipefail", "-c"]+# Install runtime dependencies for SQLCipher and WeasyPrintRUN apt-get update && apt-get upgrade -y \- && apt-get install -y \+ && apt-get install -y --no-install-recommends \sqlcipher \libsqlcipher1 \# gosu for safe user switching in entrypoint@@ -179,12 +186,11 @@ COPY --from=builder /install/.venv/ /install/.venvENV PATH="/install/.venv/bin:$PATH"# Verify SQLCipher is available after copy using compatibility module+# and install browser automation toolsRUN python -c "from local_deep_research.database.sqlcipher_compat import get_sqlcipher_module; \sqlcipher = get_sqlcipher_module(); \- print(f'✓ SQLCipher module loaded successfully: {sqlcipher}')"--# Install browser automation tools-RUN playwright install+ print(f'✓ SQLCipher module loaded successfully: {sqlcipher}')" \+ && playwright install# Create volume for persistent configuration# Use /app for configuration to support non-root user@@ -193,15 +199,15 @@ VOLUME /app/.config/local_deep_research# Create volume for Ollama start scriptVOLUME /scripts/# Copy the Ollama entrypoint script-ADD scripts/ollama_entrypoint.sh /scripts/ollama_entrypoint.sh-RUN chmod +x /scripts/ollama_entrypoint.sh+COPY scripts/ollama_entrypoint.sh /scripts/ollama_entrypoint.sh# Copy LDR entrypoint script to handle volume permissionsCOPY scripts/ldr_entrypoint.sh /usr/local/bin/ldr_entrypoint.sh-RUN chmod +x /usr/local/bin/ldr_entrypoint.sh-# Ensure all directories are owned by ldruser-RUN chown -R ldruser:ldruser /install /scripts /home/ldruser+# Set permissions and ownership for scripts and directories+RUN chmod +x /scripts/ollama_entrypoint.sh \+ && chmod +x /usr/local/bin/ldr_entrypoint.sh \+ && chown -R ldruser:ldruser /install /scripts /home/ldruserEXPOSE 5000STOPSIGNAL SIGINT