fix(docker): add curl and healthcheck routes for Coolify

This commit is contained in:
AyrisAI
2026-08-20 02:26:21 +03:00
parent 4f4f68b924
commit 373de65d07
3 changed files with 13 additions and 0 deletions
+4
View File
@@ -16,6 +16,7 @@ RUN pnpm install --frozen-lockfile --filter @menulio/api...
RUN pnpm --filter @menulio/api build
FROM node:22-alpine AS runner
RUN apk add --no-cache curl wget libc6-compat
WORKDIR /app
ENV NODE_ENV=production
@@ -34,4 +35,7 @@ USER fastify
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:3000/health || exit 1
CMD ["node", "apps/api/dist/index.js"]