From 05426489f083774a55985d435b066215c04821b0 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Wed, 29 Jul 2020 15:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EDocker=E8=87=AA=E5=8A=A8Build?= =?UTF-8?q?s=E6=96=87=E4=BB=B6Arm64v8.Dockerfile;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Arm64v8.Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Arm64v8.Dockerfile diff --git a/Arm64v8.Dockerfile b/Arm64v8.Dockerfile new file mode 100644 index 0000000..f6be366 --- /dev/null +++ b/Arm64v8.Dockerfile @@ -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"]