优化Dockerfile,添加清理缓存和临时文件步骤。
All checks were successful
Build Server / Compile DLL (push) Successful in 3m56s
All checks were successful
Build Server / Compile DLL (push) Successful in 3m56s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -78,6 +78,5 @@ export class WechatOCRClient {
|
||||
|
||||
public close() {
|
||||
WechatOCRFFI.symbols.stop_ocr()
|
||||
console.log('OCR resources cleaned up.')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user