2022-08-21 20:31:19 +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
|
|
|
|
#
|
2023-10-15 09:53:35 +00:00
|
|
|
FROM ghcr.io/hybridgroup/opencv:4.8.1-gpu-cuda-10 AS gocv-gpu-test-cuda-10
|
2022-08-21 20:31:19 +00:00
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV PATH="${PATH}:/go/bin"
|
|
|
|
|
|
|
|
COPY . /go/src/gocv.io/x/gocv/
|
|
|
|
|
|
|
|
WORKDIR /go/src/gocv.io/x/gocv
|
|
|
|
|
2023-10-15 09:53:35 +00:00
|
|
|
RUN go install github.com/rakyll/gotest@latest
|
2022-08-21 20:31:19 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["gotest", "-v", "./cuda/..."]
|