Skip to content

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.backend
index a8ee4ded7..c31bd676c 100644
--- a/Dockerfile.backend
+++ b/Dockerfile.backend
@@ -65,7 +65,7 @@ WORKDIR /app
COPY --from=builder /app /app
COPY securityconfig/ ./securityconfig/
COPY cloud_securityconfig/ ./cloud_securityconfig/
-COPY entrypoint.sh /entrypoint.sh
+COPY scripts/backend-entrypoint.sh /entrypoint.sh
ENV VIRTUAL_ENV=/app/.venv
ENV PATH="/app/.venv/bin:$PATH"
diff --git a/entrypoint.sh b/scripts/backend-entrypoint.sh
similarity index 88%
rename from entrypoint.sh
rename to scripts/backend-entrypoint.sh
index 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