2022-01-03 18:21:35 +00:00
|
|
|
# To build:
|
|
|
|
# docker build -f Dockerfile-test.gpu-cuda-10 -t gocv-test-gpu-cuda-10 .
|
|
|
|
#
|
|
|
|
# To run tests:
|
|
|
|
# docker run -it --rm --gpus all gocv-test-gpu-cuda-10
|
|
|
|
#
|
2022-06-09 15:59:21 +00:00
|
|
|
FROM gocv/opencv:4.6.0-gpu-cuda-10 AS gocv-gpu-test-cuda-10
|
2022-01-03 18:21:35 +00:00
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV PATH="${PATH}:/go/bin"
|
|
|
|
|
|
|
|
COPY . /go/src/gocv.io/x/gocv/
|
|
|
|
|
|
|
|
WORKDIR /go/src/gocv.io/x/gocv
|
|
|
|
|
|
|
|
RUN go get -u github.com/rakyll/gotest
|
|
|
|
|
|
|
|
ENTRYPOINT ["gotest", "-v", "./cuda/..."]
|