From 13c40058a857b981aa8b734ea28d9298a01315ea Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 23 Mar 2025 13:00:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Abuild=20lite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Dockerfile.lite | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c5b5aa2e..3403563d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.so *.pyd build/ +cython_cache/ dist/ nginx/ test.py diff --git a/Dockerfile.lite b/Dockerfile.lite index 82661cec..906b844f 100644 --- a/Dockerfile.lite +++ b/Dockerfile.lite @@ -76,6 +76,8 @@ RUN cp -f /app/nginx.conf /etc/nginx/nginx.template.conf \ && echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf \ && echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf \ && locale-gen zh_CN.UTF-8 \ + && python3 /app/setup.py \ + && find /app/app -type f -name "*.py" -delete \ && FRONTEND_VERSION=$(sed -n "s/^FRONTEND_VERSION\s*=\s*'\([^']*\)'/\1/p" /app/version.py) \ && curl -sL "https://github.com/jxxghp/MoviePilot-Frontend/releases/download/${FRONTEND_VERSION}/dist.zip" | busybox unzip -d / - \ && mv /dist /public \ @@ -85,9 +87,7 @@ RUN cp -f /app/nginx.conf /etc/nginx/nginx.template.conf \ while read -r i; do if [ ! -d "/app/app/plugins/$i" ]; then mv "/tmp/MoviePilot-Plugins-main/plugins/$i" "/app/app/plugins/"; else echo "跳过 $i"; fi; done \ && curl -sL "https://github.com/jxxghp/MoviePilot-Resources/archive/refs/heads/main.zip" | busybox unzip -d /tmp - \ && mv -f /tmp/MoviePilot-Resources-main/resources/* /app/app/helper/ \ - && rm -rf /tmp/* \ - && python3 /app/setup.py \ - && find /app/app -type f -name "*.py" -delete + && rm -rf /tmp/* EXPOSE 3000 VOLUME [ "/config" ] ENTRYPOINT [ "/entrypoint" ] \ No newline at end of file