mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-05-19 16:05:21 +00:00
优化Dockerfile防止更新权限覆盖
This commit is contained in:
parent
801d7b016f
commit
e10c36295c
@ -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"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
@ -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"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
@ -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"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
Loading…
x
Reference in New Issue
Block a user