- Modified Dockerfile: amd64 only, merlyn user (UID 1117), python3/pip, simplified build - Added _startup.sh: root-level startup, hands off to startup.sh as merlyn user - Added startup.sh: yarn installs, frontend build, Prisma migrations, start server+collector - Added server/requirements.txt: Python dependencies for merlyn-server - Fixed collector/yarn.lock: epub2 git URL SSH->HTTPS with commit hash - Fixed server/yarn.lock: zod version bumped to 3.25.76 to resolve zod-to-json-schema compatibility
11 lines
351 B
Bash
11 lines
351 B
Bash
#!/bin/bash
|
|
# _startup.sh - runs as root
|
|
|
|
# Install Python dependencies if requirements.txt exists and is non-empty
|
|
REQUIREMENTS=/app/server/requirements.txt
|
|
if [ -s "$REQUIREMENTS" ]; then
|
|
pip install --break-system-packages -r "$REQUIREMENTS"
|
|
fi
|
|
|
|
# Hand off to startup.sh as merlyn user
|
|
exec runuser -u merlyn -- /bin/bash /app/docker/startup.sh |