docker builder
This commit is contained in:
23
Dockerfile.build
Normal file
23
Dockerfile.build
Normal file
@@ -0,0 +1,23 @@
|
||||
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" \
|
||||
PATH="/opt/go/bin:${PATH}" \
|
||||
GOPATH="/src/build/go"
|
||||
|
||||
RUN cd /opt && git clone -b v0.36.1 https://github.com/hybridgroup/gocv.git && cd gocv && \
|
||||
make install
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
# RUN cd /sjy01/image-proc && go mod download && make linux
|
||||
# CMD ["/src/build/build.sh"]
|
||||
RUN cd /src && make linux
|
||||
Reference in New Issue
Block a user