diff --git a/Dockerfile b/Dockerfile index ddda30b..a82fb7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM node:10.1.0-alpine +RUN apk add --no-cache curl WORKDIR /app @@ -11,3 +12,6 @@ COPY . /app ENV NODE_ENV production ENTRYPOINT ["node", "-r", "esm", "./bin/server"] + +HEALTHCHECK --start-period=30s \ + CMD curl -s localhost:$(netstat -nltWep | grep 1/node | awk '{ print $4 }'| cut -d ":" -f 2)/api/status || exit 1 \ No newline at end of file