From fea2991fc0e0c778ded3d2347d5d17e2ebe46eb4 Mon Sep 17 00:00:00 2001 From: Wilson <266167309+wilsonicdev@users.noreply.github.com> Date: Fri, 5 Jun 2026 01:16:05 -0300 Subject: [PATCH] fix(docker): copy healthcheck.mjs into runner-base image --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 32a3e6c7ee..4edad547e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -81,6 +81,10 @@ COPY --from=builder /app/node_modules/better-sqlite3 ./node_modules/better-sqlit # migrations land at /migrations via assembleStandalone; point the runtime at them. ENV OMNIROUTE_MIGRATIONS_DIR=/app/migrations +# Docker healthcheck script — not traced by Next.js standalone output, so copy +# it explicitly. The HEALTHCHECK CMD references it as `node healthcheck.mjs`. +COPY --from=builder /app/scripts/dev/healthcheck.mjs ./healthcheck.mjs + # Hand /app over to the baked-in `node` non-root user (UID/GID 1000) so the # runtime process never holds root privileges. The chown happens after all # COPYs so it covers files originally owned by root in the builder stage.