fix(spark-analytics): install psycopg2 to /tmp/pkg, set PYTHONPATH so it is importable

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Janis Eccarius
2026-06-21 15:44:09 +02:00
parent 6765c5162d
commit bdc3efc878
+1 -1
View File
@@ -214,7 +214,7 @@ spec:
containers: containers:
- name: webview - name: webview
image: python:3.12-slim image: python:3.12-slim
command: ["sh", "-c", "HOME=/tmp pip install psycopg2-binary --quiet --no-cache-dir && python /scripts/serve.py"] command: ["sh", "-c", "pip install psycopg2-binary --quiet --no-cache-dir --target=/tmp/pkg && PYTHONPATH=/tmp/pkg python /scripts/serve.py"]
ports: ports:
- containerPort: 8080 - containerPort: 8080
env: env: