new version

This commit is contained in:
2020-07-23 12:52:07 +02:00
parent 5e05c384ec
commit 00b2cb8494
8 changed files with 337 additions and 68 deletions

View File

@@ -1,12 +1,8 @@
FROM alpine:3.8
FROM node:14-alpine
ENV file /usr/local/bin/run.sh
WORKDIR /app
RUN apk add --no-cache --update curl grep bash
ADD ./package.json script.js yarn.lock ./
RUN yarn
RUN echo '* * * * * ${file}' > /etc/crontabs/root
COPY ./run.sh ${file}
RUN chmod +x ${file}
CMD ["crond", "-l2", "-f"]
CMD ["node", "script.js"]