Files
jd_scripts/docker/Dockerfile
2020-11-17 10:59:34 +08:00

24 lines
602 B
Docker

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\
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
RUN git clone https://github.com/lxk0301/jd_scripts /scripts \
&& cd /scripts \
&& mkdir logs \
&& npm install \
&& cd /tmp \
&& npm install request
ENV CRONTAB_LIST_FILE crontab_list_ts.sh
RUN crontab /scripts/docker/crontab_list_ts.sh
WORKDIR /scripts
CMD ["node"]