refactor: 优化容器缓存清理逻辑
Some checks failed
Build Server / Compile DLL (push) Failing after 2m39s

- 优化容器缓存清理逻辑,增加对Pacman和Yay缓存的清除。
This commit is contained in:
2025-07-18 23:02:31 +08:00
parent 97b4c38863
commit b96edf83a5

View File

@@ -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