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.