镜像增加一个moreutils包调整日志输出格式
- 新增一个crontab_list_ts.sh是为了照顾未及时更新镜像的小伙伴定时任务不出错 - 删除三个PNG图片改为GITHUB图床,让目录看起来没那么乱 - 调整README调整docker-compose.yml说明如果使用仓库定义的定时任务,不需要在传CRONTAB_LIST_FILE变量
This commit is contained in:
@@ -3,7 +3,7 @@ MAINTAINER Akira <e.akimoto.akira@gmail.com>
|
||||
|
||||
RUN set -ex \
|
||||
&& apk update && apk upgrade\
|
||||
&& apk add --no-cache tzdata git nodejs npm\
|
||||
&& apk add --no-cache tzdata moreutils git nodejs npm\
|
||||
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
@@ -14,10 +14,10 @@ RUN git clone https://github.com/lxk0301/jd_scripts /scripts \
|
||||
&& cd ~ \
|
||||
&& npm install request
|
||||
|
||||
ENV CDN_JD_DAILYBONUS true
|
||||
ENV CRONTAB_LIST_FILE crontab_list_ts.sh
|
||||
|
||||
RUN crontab /scripts/docker/crontab_list.sh
|
||||
RUN crontab /scripts/docker/crontab_list_ts.sh
|
||||
|
||||
WORKDIR /scripts
|
||||
|
||||
CMD ["node"]
|
||||
CMD ["node"]
|
Reference in New Issue
Block a user