From de62bd3ba53e108cd7f77c076c9b793c79a10e3a Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Wed, 3 Jul 2024 12:27:03 -0400 Subject: [PATCH] fix(server): healthcheck (#10811) --- server/Dockerfile | 2 +- server/bin/immich-healthcheck | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 server/bin/immich-healthcheck diff --git a/server/Dockerfile b/server/Dockerfile index fa825451be..1308d809d1 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -80,4 +80,4 @@ EXPOSE 3001 ENTRYPOINT ["tini", "--", "/bin/bash"] CMD ["start.sh"] -HEALTHCHECK CMD npm run healthcheck +HEALTHCHECK CMD immich-healthcheck diff --git a/server/bin/immich-healthcheck b/server/bin/immich-healthcheck new file mode 100755 index 0000000000..6043e526aa --- /dev/null +++ b/server/bin/immich-healthcheck @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +node /usr/src/app/dist/utils/healthcheck.js