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