From ebd07a50cc33f2418b834e0841e0ede1e9e19499 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Wed, 3 Jan 2024 16:23:21 -0800 Subject: [PATCH] adding healthcheck to Dockerfile per Ox --- app/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Dockerfile b/app/Dockerfile index 19dcee0..768b1a6 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -5,4 +5,5 @@ RUN apk add --update npm && \ npm install COPY . ./ EXPOSE 3000 3443 +HEALTHCHECK --interval=30s --timeout=5s CMD wget -qO- http://localhost:3000/ || exit 1 CMD ["node", "app.js"]