Linux 运行环境固定为 opencv-4.9.0 gdal-3.8.4 ubuntu-22.04
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user