diff --git a/Dockerfile b/Dockerfile index 15dfd31..400bc53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,9 @@ RUN pacman -Syu --noconfirm git cmake python nodejs && \ FROM greyltc/archlinux-aur:yay AS runner 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 --from=lib /src/wcocr/build/libwcocr.so . RUN bun install --frozen-lockfile diff --git a/src/wcocr.ts b/src/wcocr.ts index 4893c40..662342d 100644 --- a/src/wcocr.ts +++ b/src/wcocr.ts @@ -78,6 +78,5 @@ export class WechatOCRClient { public close() { WechatOCRFFI.symbols.stop_ocr() - console.log('OCR resources cleaned up.') } }