优化Dockerfile,添加清理缓存和临时文件步骤。
All checks were successful
Build Server / Compile DLL (push) Successful in 3m56s

This commit is contained in:
2025-07-08 01:17:25 +08:00
parent fffa977d18
commit 721bd2bb5c
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,9 @@ RUN pacman -Syu --noconfirm git cmake python nodejs && \
FROM greyltc/archlinux-aur:yay AS runner FROM greyltc/archlinux-aur:yay AS runner
WORKDIR /app WORKDIR /app
RUN aur-install bun-bin wechat-bin RUN aur-install bun-bin wechat-bin && \
pacman -Scc --noconfirm && \
rm -rf /var/cache/makepkg/* /tmp/* /var/log/*
COPY . . COPY . .
COPY --from=lib /src/wcocr/build/libwcocr.so . COPY --from=lib /src/wcocr/build/libwcocr.so .
RUN bun install --frozen-lockfile RUN bun install --frozen-lockfile

View File

@@ -78,6 +78,5 @@ export class WechatOCRClient {
public close() { public close() {
WechatOCRFFI.symbols.stop_ocr() WechatOCRFFI.symbols.stop_ocr()
console.log('OCR resources cleaned up.')
} }
} }