🐛 opencv
This commit is contained in:
@@ -26,6 +26,13 @@ RUN mkdir -p /opencv-libs && \
|
||||
|
||||
FROM golang:latest
|
||||
|
||||
# 安装 OpenCV 运行时依赖
|
||||
RUN apt update && apt install -y \
|
||||
libgl1 \
|
||||
libgomp1 \
|
||||
libglib2.0-0 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 复制 OpenCV .so 文件到运行环境
|
||||
COPY --from=backend-builder /opencv-libs/* /usr/lib/x86_64-linux-gnu/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user