2023-04-13 01:13:14 +02:00
|
|
|
ARG GO_VERSION=1.20
|
2023-04-21 15:29:32 -07:00
|
|
|
ARG BUILD_TYPE=
|
2023-04-29 20:38:37 +02:00
|
|
|
FROM golang:$GO_VERSION
|
2023-05-18 19:18:32 +02:00
|
|
|
ENV REBUILD=true
|
2023-04-13 01:13:14 +02:00
|
|
|
WORKDIR /build
|
2023-05-21 15:24:22 +02: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-13 01:13:14 +02:00
|
|
|
COPY . .
|
2023-05-17 01:30:30 +02:00
|
|
|
RUN ln -s /usr/include/opencv4/opencv2/ /usr/include/opencv2
|
2023-05-18 19:18:32 +02:00
|
|
|
RUN make build
|
2023-04-27 18:45:24 +02:00
|
|
|
EXPOSE 8080
|
2023-04-29 20:38:37 +02:00
|
|
|
ENTRYPOINT [ "/build/entrypoint.sh" ]
|