Skip to content

Commit d544674

Browse files
committed
feat: Add healthcheck CMD to Docker image
1 parent 448062f commit d544674

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ ARG TARGETARCH
33
WORKDIR /app
44
COPY --chmod=555 packages/spotlight/dist-bin/spotlight-linux-$TARGETARCH /app/spotlight
55

6+
HEALTHCHECK CMD [ "bash", "-c", "exec 3<>'/dev/tcp/localhost/8969' && printf 'GET /health HTTP/1.0\r\nHost: localhost\r\n\r\n' >&3 && read -r line <&3 && echo \"$line\" | grep -q '200 OK'" ]
7+
68
ENTRYPOINT ["/app/spotlight"]

0 commit comments

Comments
 (0)