2022-08-21 20:31:19 +00:00
|
|
|
# to build this docker image:
|
|
|
|
# docker build -f Dockerfile.gpu .
|
2023-10-15 09:53:35 +00:00
|
|
|
FROM ghcr.io/hybridgroup/opencv:4.8.1-gpu-cuda-11 AS gocv-gpu
|
2022-08-21 20:31:19 +00:00
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
|
|
|
COPY . /go/src/gocv.io/x/gocv/
|
|
|
|
|
|
|
|
WORKDIR /go/src/gocv.io/x/gocv
|
|
|
|
RUN go build -tags cuda -o /build/gocv_cuda_version ./cmd/cuda/
|
|
|
|
|
|
|
|
CMD ["/build/gocv_cuda_version"]
|