support arm64 reactive resume image layout

This commit is contained in:
2026-05-20 01:15:39 +08:00
parent 944a852470
commit 2141afd3eb
10 changed files with 170 additions and 54 deletions

View File

@@ -21,16 +21,7 @@ services:
reactive-resume:
image: amruthpillai/reactive-resume:latest
restart: unless-stopped
entrypoint: ["/bin/sh", "-c"]
command:
- |
sh /opt/reactive-resume-patches/reactive-resume-runtime-patch.sh
APP_DIR="$(cat /tmp/reactive-resume-app-dir 2>/dev/null || true)"
if [ -z "$$APP_DIR" ]; then
APP_DIR="$(find /app -path '*/.output/server/index.mjs' -type f 2>/dev/null | head -n 1 | sed 's#/.output/server/index.mjs##')"
fi
cd "$${APP_DIR:-/app/apps/web}"
exec node .output/server/index.mjs
entrypoint: ["/bin/sh", "/opt/reactive-resume-patches/reactive-resume-entrypoint.sh"]
env_file:
- .env
ports:
@@ -38,6 +29,7 @@ services:
volumes:
- reactive_resume_data:/app/data
- ./patches/reactive-resume-runtime-patch.sh:/opt/reactive-resume-patches/reactive-resume-runtime-patch.sh:ro
- ./patches/reactive-resume-entrypoint.sh:/opt/reactive-resume-patches/reactive-resume-entrypoint.sh:ro
networks:
- resume_net
depends_on: