Added healthcheck for website

This commit is contained in:
2025-01-15 13:11:27 +00:00
parent 211607dfc6
commit 6c6b51515a
2 changed files with 6 additions and 0 deletions

View File

@@ -24,4 +24,7 @@ RUN mv ./build/* /var/www/site/
EXPOSE 3000 EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
CMD curl -f http://localhost:3000/health || exit 1
ENTRYPOINT ["bun", "/var/www/site/index.js"] ENTRYPOINT ["bun", "/var/www/site/index.js"]

View File

@@ -0,0 +1,3 @@
export function GET() {
return new Response('OK', { status: 200 });
}