From 7cce103d24af3a85cd8f2cfb2441c13d460f8400 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Sat, 17 Jan 2026 15:34:00 -0600 Subject: [PATCH] chore(docker): Added healthcheck --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 68328df..c407840 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,5 +15,7 @@ RUN mkdir -p /node_modules COPY --from=node-build /usr/src/app/build ./build COPY --from=node-build /usr/src/app/node_modules_prod ./node_modules EXPOSE 3000 +HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ + CMD wget --no-verbose --tries=1 --spider http://localhost:3000/healthcheck || exit 1 CMD [ "node", "build/server.js" ]