From b96edf83a5f18d6888dad6ad81b0c8cd5f8ec3b2 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 18 Jul 2025 23:02:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=AE=B9?= =?UTF-8?q?=E5=99=A8=E7=BC=93=E5=AD=98=E6=B8=85=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 优化容器缓存清理逻辑,增加对Pacman和Yay缓存的清除。 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f4167d8..e4271f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,12 @@ RUN pacman -Syu --noconfirm git cmake python nodejs && \ FROM greyltc/archlinux-aur:yay AS runner WORKDIR /app -RUN aur-install bun-bin wechat-bin && \ - pacman -Scc --noconfirm && \ - rm -rf /var/cache/makepkg/* /tmp/* /var/log/* COPY . . COPY --from=lib /src/wcocr/build/libwcocr.so . -RUN bun install --frozen-lockfile +RUN aur-install bun-bin wechat-bin && \ + pacman -Scc --noconfirm && rm -rf /var/cache/pacman/pkg/* && \ + yay -Scc --noconfirm && rm -rf $HOME/.cache/yay/* && \ + bun install --frozen-lockfile EXPOSE 3000