diff --git a/sample-functions/DockerHubStats/Dockerfile b/sample-functions/DockerHubStats/Dockerfile index 8e1924b9..55f759d8 100644 --- a/sample-functions/DockerHubStats/Dockerfile +++ b/sample-functions/DockerHubStats/Dockerfile @@ -12,5 +12,6 @@ ADD https://github.com/openfaas/faas/releases/download/0.6.0/fwatchdog /usr/bin RUN chmod +x /usr/bin/fwatchdog ENV fprocess "/go/bin/DockerHubStats" +HEALTHCHECK --interval=5s CMD [ -e /tmp/.lock ] || exit 1 CMD [ "/usr/bin/fwatchdog"]