diff --git a/Dockerfile b/Dockerfile index 06b33adf..9f03c84d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,9 +45,9 @@ RUN apt-get update \ wget \ curl \ busybox \ - && cp -f nginx.conf /etc/nginx/nginx.template.conf \ - && cp update /usr/local/bin/mp_update \ - && chmod +x /usr/local/bin/mp_update \ + && cp -f /app/nginx.conf /etc/nginx/nginx.template.conf \ + && cp /app/update /usr/local/bin/mp_update \ + && chmod +x /app/start.sh /usr/local/bin/mp_update \ && mkdir -p ${HOME} \ && groupadd -r moviepilot -g 911 \ && useradd -r moviepilot -g moviepilot -d ${HOME} -s /bin/bash -u 911 \ diff --git a/start.sh b/start.sh index 69e55d44..96559515 100644 --- a/start.sh +++ b/start.sh @@ -4,7 +4,7 @@ envsubst '${NGINX_PORT}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf # 自动更新 if [ "${MOVIEPILOT_AUTO_UPDATE}" = "true" ]; then - mp_update + /usr/local/bin/mp_update else echo "程序自动升级已关闭,如需自动升级请在创建容器时设置环境变量:MOVIEPILOT_AUTO_UPDATE=true" fi