2023-04-12 23:13:14 +00:00
|
|
|
ARG GO_VERSION=1.20
|
2023-04-21 22:29:32 +00:00
|
|
|
ARG BUILD_TYPE=
|
2023-04-29 18:38:37 +00:00
|
|
|
FROM golang:$GO_VERSION
|
2023-05-18 17:18:32 +00:00
|
|
|
ENV REBUILD=true
|
2023-04-12 23:13:14 +00:00
|
|
|
WORKDIR /build
|
2023-05-21 13:24:22 +00:00
|
|
|
RUN apt-get update && apt-get install -y cmake libgomp1 libopenblas-dev libopenblas-base libopencv-dev libopencv-core-dev libopencv-core4.5 ca-certificates
|
2023-04-12 23:13:14 +00:00
|
|
|
COPY . .
|
2023-05-16 23:30:30 +00:00
|
|
|
RUN ln -s /usr/include/opencv4/opencv2/ /usr/include/opencv2
|
2023-05-18 17:18:32 +00:00
|
|
|
RUN make build
|
2023-04-27 16:45:24 +00:00
|
|
|
EXPOSE 8080
|
2023-04-29 18:38:37 +00:00
|
|
|
ENTRYPOINT [ "/build/entrypoint.sh" ]
|