move crontab fill on top

This commit is contained in:
Karol Wypchlo 2021-05-24 17:13:29 +02:00
parent 838d82c3b5
commit 6649726598
1 changed files with 3 additions and 3 deletions

View File

@ -2,14 +2,14 @@ FROM node:16.1.0-alpine
WORKDIR /usr/app 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 . COPY package.json .
RUN yarn --no-lockfile RUN yarn --no-lockfile
COPY src src COPY src src
COPY cli cli 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 EXPOSE 3100
ENV NODE_ENV production 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" ] 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" ]