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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user