robocar-road/vendor/gocv.io/x/gocv/Dockerfile.gpu

13 lines
307 B
Docker
Raw Normal View History

# to build this docker image:
# docker build -f Dockerfile.gpu .
FROM ghcr.io/hybridgroup/opencv:4.9.0-gpu-cuda-11 AS gocv-gpu
ENV GOPATH /go
COPY . /go/src/gocv.io/x/gocv/
WORKDIR /go/src/gocv.io/x/gocv
2021-12-24 15:53:47 +00:00
RUN go build -tags cuda -o /build/gocv_cuda_version ./cmd/cuda/
CMD ["/build/gocv_cuda_version"]