gocv v0.36.1 opencv 4.9.0

This commit is contained in:
nuknal
2024-06-09 20:08:32 +08:00
parent c046da2321
commit 031b76be39
8 changed files with 377 additions and 77 deletions

17
build/Dockerfile.build Normal file
View File

@@ -0,0 +1,17 @@
FROM ghcr.io/osgeo/gdal:ubuntu-small-latest-amd64
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
wget \
sudo
RUN cd /opt && wget https://go.dev/dl/go1.20.linux-amd64.tar.gz && \
tar -xvf go1.20.linux-amd64.tar.gz && rm go1.20.linux-amd64.tar.gz
ENV GOROOT="/opt/go"
ENV PATH="/opt/go/bin:${PATH}"
RUN cd /opt && git clone -b v0.36.1 https://github.com/hybridgroup/gocv.git && cd gocv && \
make install