feat: entrypoint

This commit is contained in:
Ivan Rezchikov
2026-07-12 16:52:50 +03:00
parent 039cb4d2d3
commit 549dc6b9da
2 changed files with 23 additions and 1 deletions
+4 -1
View File
@@ -15,9 +15,12 @@ COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/next.config.ts ./next.config.ts
COPY --from=builder /app/next.config.js ./next.config.js
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
RUN npm prune --omit=dev
EXPOSE 80
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["npm", "start", "--", "-p", "3000", "-H", "0.0.0.0"]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget -q --spider http://localhost:3000/ || exit 1