parent
8489b07b35
commit
05426489f0
@ -0,0 +1,25 @@ |
||||
FROM arm64v8/alpine |
||||
#FROM arm64v8/alpine:latest |
||||
#FROM arm64v8/alpine:3.12 |
||||
|
||||
ENV TZ Asia/Shanghai |
||||
|
||||
ENV cron="0 9 * * 0" |
||||
|
||||
RUN set -ex \ |
||||
# && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories \ |
||||
# && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.cn/' /etc/apk/repositories \ |
||||
&& apk update \ |
||||
&& apk add --no-cache \ |
||||
tzdata \ |
||||
php7 php7-curl php7-json php7-mbstring php7-dom php7-simplexml php7-xml php7-zip \ |
||||
git \ |
||||
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \ |
||||
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \ |
||||
&& ln -sf /IYUU/config/config.php /config.php \ |
||||
&& echo "${TZ}" > /etc/timezone \ |
||||
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime |
||||
|
||||
WORKDIR /IYUU |
||||
|
||||
CMD ["sh", "-c", "/usr/bin/php /IYUU/iyuu.php ; /usr/sbin/crond ; (crontab -l ;echo \"$cron /usr/bin/php /IYUU/iyuu.php &> /dev/null\") | crontab - ; tail -f /dev/null"] |
Loading…
Reference in new issue