2021-09-02 10:03:56 +00:00
|
|
|
# to build this docker image:
|
|
|
|
# docker build -f Dockerfile.gpu .
|
2022-06-09 10:30:53 +00:00
|
|
|
FROM gocv/opencv:4.6.0-gpu-cuda-11 AS gocv-gpu
|
2021-09-02 10:03:56 +00:00
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
|
|
|
COPY . /go/src/gocv.io/x/gocv/
|
|
|
|
|
|
|
|
WORKDIR /go/src/gocv.io/x/gocv
|
2022-06-09 10:30:53 +00:00
|
|
|
RUN go build -tags cuda -o /build/gocv_cuda_version ./cmd/cuda/
|
2021-09-02 10:03:56 +00:00
|
|
|
|
|
|
|
CMD ["/build/gocv_cuda_version"]
|