From cdca286be151d7f836ee0b48ae8a770bd78f264b Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 17 May 2023 01:30:30 +0200 Subject: [PATCH] docker: add openblas and opencv to images (#277) --- Dockerfile | 3 ++- Dockerfile.dev | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b82850a..52869bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,9 @@ ARG GO_VERSION=1.20 ARG BUILD_TYPE= FROM golang:$GO_VERSION WORKDIR /build -RUN apt-get update && apt-get install -y cmake +RUN apt-get update && apt-get install -y cmake libgomp1 libopenblas-dev libopenblas-base libopencv-dev libopencv-core-dev libopencv-core4.5 COPY . . +RUN ln -s /usr/include/opencv4/opencv2/ /usr/include/opencv2 RUN make prepare-sources EXPOSE 8080 ENTRYPOINT [ "/build/entrypoint.sh" ] diff --git a/Dockerfile.dev b/Dockerfile.dev index 16c8447..50b1594 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -4,7 +4,8 @@ ARG BUILD_TYPE= FROM golang:$GO_VERSION as builder WORKDIR /build -RUN apt-get update && apt-get install -y cmake +RUN apt-get update && apt-get install -y cmake libgomp1 libopenblas-dev libopenblas-base libopencv-dev libopencv-core-dev libopencv-core4.5 +RUN ln -s /usr/include/opencv4/opencv2/ /usr/include/opencv2 COPY . . RUN make build