jd_scripts/docker/Dockerfile

23 lines
598 B
Docker
Raw Normal View History

2020-11-10 09:29:58 +08:00
FROM alpine
MAINTAINER Akira <e.akimoto.akira@gmail.com>
RUN set -ex \
&& apk update && apk upgrade\
&& apk add --no-cache tzdata moreutils git nodejs npm\
2020-11-10 09:29:58 +08:00
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
RUN git clone https://github.com/lxk0301/jd_scripts /scripts \
2020-11-10 09:29:58 +08:00
&& cd /scripts \
&& mkdir logs \
&& npm install \
&& cd ~ \
&& npm install request
ENV CRONTAB_LIST_FILE crontab_list_ts.sh
2020-11-10 09:29:58 +08:00
RUN crontab /scripts/docker/crontab_list_ts.sh
2020-11-10 09:29:58 +08:00
WORKDIR /scripts
CMD ["node"]