This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-29 15:57:32 +00:00
|
|
|
FROM node:16.0.0-alpine
|
2020-07-30 12:23:49 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/app
|
|
|
|
|
|
|
|
COPY package.json .
|
|
|
|
RUN yarn --no-lockfile
|
2020-09-09 14:08:10 +00:00
|
|
|
COPY src src
|
|
|
|
COPY cli cli
|
2020-07-30 12:23:49 +00:00
|
|
|
|
2021-04-30 09:12:41 +00:00
|
|
|
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
|
2021-01-26 11:18:40 +00:00
|
|
|
|
2020-07-30 12:23:49 +00:00
|
|
|
EXPOSE 3100
|
|
|
|
ENV NODE_ENV production
|
2021-05-05 12:18:10 +00:00
|
|
|
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" ]
|