fix(docker): copy healthcheck.mjs into runner-base image

This commit is contained in:
Wilson
2026-06-05 01:16:05 -03:00
committed by diegosouzapw
parent 4dbbbaacf1
commit fea2991fc0

View File

@@ -81,6 +81,10 @@ COPY --from=builder /app/node_modules/better-sqlite3 ./node_modules/better-sqlit
# migrations land at <standalone>/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.