From 6649726598e51eb740ac9d65af4c8a0ab357d892 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 24 May 2021 17:13:29 +0200 Subject: [PATCH] move crontab fill on top --- packages/health-check/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index dcae0b1b..214200e3 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -2,14 +2,14 @@ FROM node:16.1.0-alpine WORKDIR /usr/app +RUN echo '*/5 * * * * /usr/app/cli/run critical > /dev/stdout' >> /etc/crontabs/root +RUN echo '0 * * * * /usr/app/cli/run extended > /dev/stdout' >> /etc/crontabs/root + COPY package.json . RUN yarn --no-lockfile COPY src src COPY cli cli -RUN echo '*/5 * * * * /usr/app/cli/run critical > /dev/stdout' >> /etc/crontabs/root -RUN echo '0 * * * * /usr/app/cli/run extended > /dev/stdout' >> /etc/crontabs/root - EXPOSE 3100 ENV NODE_ENV production CMD [ "sh", "-c", "crond ; echo $(node src/whatismyip.js) siasky.net account.siasky.net >> /etc/hosts ; node --max-http-header-size=64000 src/index.js" ]