From 228912b2579615c95041df0f7bcb6023d62b36fa Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 29 Jan 2024 20:44:55 +0100 Subject: [PATCH] add docker healthcheck --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1bbbc79..17a52ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,5 @@ RUN yarn build FROM nginx:1.25-alpine3.18 COPY --from=build /app/build /app COPY data /app/data -COPY nginx.conf /etc/nginx/nginx.conf \ No newline at end of file +COPY nginx.conf /etc/nginx/nginx.conf +HEALTHCHECK CMD curl -fsS -m 10 -o /dev/null http://localhost:8080