Add health check.
This commit is contained in:
parent
66eb8e0cc2
commit
2428e19951
|
|
@ -21,5 +21,10 @@ EXPOSE 3000
|
||||||
# Set environment
|
# Set environment
|
||||||
ENV NODE_ENV=production
|
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
|
# Start the SvelteKit app
|
||||||
CMD ["node", "build"]
|
CMD ["node", "build"]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
export const GET = () => {
|
||||||
|
return new Response('ok', { status: 200 });
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue