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
@@ -41,6 +41,7 @@ RUN pnpm --filter @menulio/web build
# 3. Production runner
FROM node:22-alpine AS runner
RUN apk add --no-cache curl wget libc6-compat
WORKDIR /app
ENV NODE_ENV=production
@@ -60,4 +61,7 @@ USER nextjs
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:3000/api/health || exit 1
CMD ["node", "apps/web/server.js"]