Some checks failed
Build Server / Compile DLL (push) Failing after 2m24s
- 删除清理缓存的命令以优化Docker构建过程。
17 lines
471 B
Docker
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"]
|