Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

fix: Added ownership privileges for non-root user in prompt service Dockerfile (#1140)

Chandrasekharan M8cfe4010df8b
diff --git a/docker/dockerfiles/prompt.Dockerfile b/docker/dockerfiles/prompt.Dockerfile
index f3a4c8835..bdac13de1 100644
--- a/docker/dockerfiles/prompt.Dockerfile
+++ b/docker/dockerfiles/prompt.Dockerfile
@@ -43,9 +43,8 @@ RUN pdm venv create -w virtualenv --with-pip && \
opentelemetry-exporter-otlp && \
opentelemetry-bootstrap -a install
-# Read and execute access to non-root user to avoid security hotspot
-# Write access to specific sub-directory need to be explicitly provided if required
-COPY --chmod=755 ${BUILD_CONTEXT_PATH} /app/
+# TODO: Security issue but ignoring it for nuitka based builds
+COPY --chown=unstract ${BUILD_CONTEXT_PATH} /app/
# Copy local dependencies
COPY --chown=unstract ${BUILD_PACKAGES_PATH}/core /unstract/core
COPY --chown=unstract ${BUILD_PACKAGES_PATH}/flags /unstract/flags