From e0ea70fa0f0b23b906a380c57257670e5e62cb09 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Tue, 8 Jul 2025 00:26:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0Dockerfile=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E9=A1=B9=E4=B8=8E=E6=9E=84=E5=BB=BA=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改Dockerfile以注释旧构建步骤并添加新依赖项。 --- Dockerfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c070b4..2670213 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,14 @@ -FROM greyltc/archlinux-aur:yay AS lib -WORKDIR /src -RUN yay -Syu --noconfirm cmake python nodejs && \ - git clone https://github.com/swigger/wechat-ocr.git wcocr && \ - sed -i 's/v3.21.0/v3.21.2/g' wcocr/CMakeLists.txt && \ - mkdir -p wcocr/build && cd wcocr/build && cmake .. && make -j$(nproc) +# FROM greyltc/archlinux-aur:yay AS lib +# WORKDIR /src +# RUN yay -Syu --noconfirm cmake python nodejs && \ +# git clone https://github.com/swigger/wechat-ocr.git wcocr && \ +# sed -i 's/v3.21.0/v3.21.2/g' wcocr/CMakeLists.txt && \ +# mkdir -p wcocr/build && cd wcocr/build && cmake .. && make -j$(nproc) -# FROM greyltc/archlinux-aur:yay -# WORKDIR /app +FROM greyltc/archlinux-aur:yay +WORKDIR /app +RUN yay -Syu --noconfirm bun-bin wechat-bin && \ + echo "Hello World" # COPY --from=lib /src/wcocr/build/libwcocr.so . # COPY src/index.ts . # RUN bun install hono