OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
fix(security): Containerized Backend application is running as root
Mike Pawlowskid432a309f82f
diff --git a/Dockerfile.backend b/Dockerfile.backendindex a8ee4ded7..c31bd676c 100644--- a/Dockerfile.backend+++ b/Dockerfile.backend@@ -65,7 +65,7 @@ WORKDIR /appCOPY --from=builder /app /appCOPY securityconfig/ ./securityconfig/COPY cloud_securityconfig/ ./cloud_securityconfig/-COPY entrypoint.sh /entrypoint.sh+COPY scripts/backend-entrypoint.sh /entrypoint.shENV VIRTUAL_ENV=/app/.venvENV PATH="/app/.venv/bin:$PATH"diff --git a/entrypoint.sh b/scripts/backend-entrypoint.shsimilarity index 88%rename from entrypoint.shrename to scripts/backend-entrypoint.shindex 16a141f4f..f558f105a 100755--- a/entrypoint.sh+++ b/scripts/backend-entrypoint.sh@@ -1,5 +1,5 @@#!/bin/sh-# entrypoint.sh — run as root, fix volume-mount ownership, then drop to appuser.+# backend-entrypoint.sh — run as root, fix volume-mount ownership, then drop to appuser.## When Docker (not Podman) mounts a host directory the ownership reflects the# host filesystem, which may not be UID/GID 1000. Podman handles this with the