From 721bd2bb5c80fb4fa0aa958d6d15d243c2ebbfcd Mon Sep 17 00:00:00 2001 From: imbytecat Date: Tue, 8 Jul 2025 01:17:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Dockerfile=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=B8=85=E7=90=86=E7=BC=93=E5=AD=98=E5=92=8C=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E6=96=87=E4=BB=B6=E6=AD=A5=E9=AA=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- src/wcocr.ts | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) 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.') } }