We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad256b commit ac59dfcCopy full SHA for ac59dfc
Dockerfile
@@ -32,4 +32,7 @@ EXPOSE 8080
32
ENV NODE_ENV=production
33
ENV PORT=8080
34
ENV HOSTNAME="0.0.0.0"
35
-CMD ["bun", "run", "start"]
+CMD ["bun", "run", "start"]
36
+
37
+HEALTHCHECK --interval=5s --timeout=5s --start-period=45s --retries=3 \
38
+ CMD wget --no-verbose --tries=1 --spider http://localhost:8080/api/health || exit 1
src/app/api/health/route.ts
@@ -0,0 +1,3 @@
1
+export function GET() {
2
+ return new Response("OK", { status: 200 });
3
+}
0 commit comments