Linux 运行环境固定为 opencv-4.9.0 gdal-3.8.4 ubuntu-22.04

This commit is contained in:
nuknal
2024-07-12 15:29:38 +08:00
parent 2bc6f53acc
commit b8ac9cf4d4
7 changed files with 81 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
FROM ghcr.io/osgeo/gdal:ubuntu-small-latest-amd64
FROM --platform=linux/amd64 ghcr.io/osgeo/gdal:ubuntu-small-3.8.4
RUN apt-get update && apt-get install -y \
build-essential \
@@ -16,8 +16,6 @@ RUN echo 'export PATH="/opt/go/bin:${PATH}"' >> /root/.bashrc
RUN cd /opt && git clone -b v0.36.1 https://github.com/hybridgroup/gocv.git && \
cd gocv && \
awk '{gsub(/libtbb2/, "libtbbmalloc2"); gsub(/libdc1394-22-dev/, "libdc1394-dev"); print}' Makefile > Makefile.tmp && \
mv Makefile.tmp Makefile && \
make install && \
cd .. && \
rm -rf gocv