Files
wechat-ocr-server/Dockerfile
imbytecat 95b658527a
Some checks failed
Build Server / Compile DLL (push) Failing after 2m24s
chore: 优化Docker构建流程删除缓存命令
- 删除清理缓存的命令以优化Docker构建过程。
2025-07-19 15:26:36 +08:00

17 lines
471 B
Docker

FROM archlinux:base-devel AS lib
WORKDIR /src
RUN pacman -Syu --noconfirm git cmake python nodejs && \
git clone https://github.com/swigger/wechat-ocr.git wcocr && \
mkdir -p wcocr/build && cd wcocr/build && cmake .. && make -j$(nproc)
FROM greyltc/archlinux-aur:yay AS runner
WORKDIR /app
COPY . .
COPY --from=lib /src/wcocr/build/libwcocr.so .
RUN aur-install bun-bin wechat-bin && \
bun install --frozen-lockfile
EXPOSE 3000
CMD ["bun", "src/index.ts"]