From a744f5e7854a57bcfeed93e27b6a16ca61514d7e Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Fri, 31 Jul 2020 07:58:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=9C=AC=E5=9C=B0ARM?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=89=93=E5=8C=85=E6=A0=87=E7=AD=BE=E4=B8=BA?= =?UTF-8?q?=EF=BC=9Aiyuu:arm64v8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Arm64v8/Dockerfile | 2 ++ docker/Arm64v8/build.n1.sh | 4 ++-- docker/Arm64v8/build.sh | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/Arm64v8/Dockerfile b/docker/Arm64v8/Dockerfile index 95e07b4..edf3408 100644 --- a/docker/Arm64v8/Dockerfile +++ b/docker/Arm64v8/Dockerfile @@ -17,6 +17,8 @@ RUN set -ex \ && 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 \ + && apk del --purge *-dev \ + && rm -rf /var/cache/apk/* /tmp/* /usr/share/man \ && echo "${TZ}" > /etc/timezone \ && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime diff --git a/docker/Arm64v8/build.n1.sh b/docker/Arm64v8/build.n1.sh index 74f2e0e..8666c0d 100644 --- a/docker/Arm64v8/build.n1.sh +++ b/docker/Arm64v8/build.n1.sh @@ -1,4 +1,4 @@ #!/bin/sh -docker build -t iyuu:latest . -docker run -it -v /root/config.php:/config.php -v /var/lib/transmission/torrents:/torrents -v /var/lib/qbittorrent/.local/share/data/qBittorrent/BT_backup:/BT_backup --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest +docker build -t iyuu:arm64v8 . +docker run -it -v /root/config.php:/config.php -v /var/lib/transmission/torrents:/torrents -v /var/lib/qbittorrent/.local/share/data/qBittorrent/BT_backup:/BT_backup --network bridge --name IYUUAutoReseed --restart always -d iyuu:arm64v8 docker exec -it IYUUAutoReseed php iyuu.php \ No newline at end of file diff --git a/docker/Arm64v8/build.sh b/docker/Arm64v8/build.sh index 29548e7..ebc989a 100644 --- a/docker/Arm64v8/build.sh +++ b/docker/Arm64v8/build.sh @@ -1,4 +1,4 @@ #!/bin/sh -docker build -f Dockerfile -t iyuu:latest . -docker run -it -v /root/config.php:/config.php --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest +docker build -f Dockerfile -t iyuu:arm64v8 . +docker run -it -v /root/config.php:/config.php --network bridge --name IYUUAutoReseed --restart always -d iyuu:arm64v8 docker exec -it IYUUAutoReseed php iyuu.php \ No newline at end of file