Add health check.

This commit is contained in:
gtrefalt 2025-10-28 21:37:30 +01:00
parent 66eb8e0cc2
commit 2428e19951
2 changed files with 8 additions and 0 deletions

View File

@ -21,5 +21,10 @@ EXPOSE 3000
# Set environment
ENV NODE_ENV=production
# add health check
HEALTHCHECK --interval=30s --timeout=3s --retries=3 \
CMD wget -qO- http://localhost:3000/_healthz || exit 1
# Start the SvelteKit app
CMD ["node", "build"]

View File

@ -0,0 +1,3 @@
export const GET = () => {
return new Response('ok', { status: 200 });
};