From e10c36295c796901f6976378aa07b4bc7831c83d Mon Sep 17 00:00:00 2001 From: david Date: Tue, 22 Dec 2020 01:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Dockerfile=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9D=83=E9=99=90=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- docker/AMD64/Dockerfile | 5 +++-- docker/Arm64v8/Dockerfile | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4288422..3af3e16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -81,7 +81,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 \ - && chmod -R 777 /IYUU/docker/entrypoint.sh \ + && cp /IYUU/docker/entrypoint.sh /entrypoint.sh \ + && chmod -R 777 /entrypoint.sh \ && apk del --purge *-dev \ && rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php7 \ # ---------- some config,clear work ---------- @@ -110,4 +111,4 @@ RUN set -ex \ # EXPOSE 9000 # VOLUME ["/IYUU", "/data"] WORKDIR /IYUU -ENTRYPOINT ["/IYUU/docker/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/docker/AMD64/Dockerfile b/docker/AMD64/Dockerfile index 4288422..3af3e16 100644 --- a/docker/AMD64/Dockerfile +++ b/docker/AMD64/Dockerfile @@ -81,7 +81,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 \ - && chmod -R 777 /IYUU/docker/entrypoint.sh \ + && cp /IYUU/docker/entrypoint.sh /entrypoint.sh \ + && chmod -R 777 /entrypoint.sh \ && apk del --purge *-dev \ && rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php7 \ # ---------- some config,clear work ---------- @@ -110,4 +111,4 @@ RUN set -ex \ # EXPOSE 9000 # VOLUME ["/IYUU", "/data"] WORKDIR /IYUU -ENTRYPOINT ["/IYUU/docker/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/docker/Arm64v8/Dockerfile b/docker/Arm64v8/Dockerfile index 9eddeae..c9d4808 100644 --- a/docker/Arm64v8/Dockerfile +++ b/docker/Arm64v8/Dockerfile @@ -17,7 +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 \ - && chmod -R 777 /IYUU/docker/entrypoint.sh \ + && cp /IYUU/docker/entrypoint.sh /entrypoint.sh \ + && chmod -R 777 /entrypoint.sh \ && apk del --purge *-dev \ && rm -rf /var/cache/apk/* /tmp/* /usr/share/man \ && echo "${TZ}" > /etc/timezone \ @@ -28,4 +29,4 @@ RUN set -ex \ && echo -e "\033[42;37m Build Completed :).\033[0m\n" WORKDIR /IYUU -ENTRYPOINT ["/IYUU/docker/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file