Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jimexist committed Feb 2, 2024
1 parent f1368a2 commit 46829e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ RUN cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_ITT=OFF \
-DBUILD_IPP_IW=OFF \
-DWITH_PNG=OFF \
-DWITH_JPEG=OFF \
-DWITH_TIFF=OFF \
Expand All @@ -52,8 +54,6 @@ WORKDIR /usr/src/surya

COPY . .

RUN ln -s /usr/lib/llvm-15/lib/libclang.so.1 "/usr/lib/$(uname -m)-linux-gnu/libclang.so"

RUN OPENCV_LINK_LIBS="opencv_imgcodecs,opencv_imgproc,opencv_core" \
OPENCV_LINK_PATHS="/opt/opencv/lib,/opt/opencv/lib/opencv4/3rdparty,/usr/lib/$(uname -m)-linux-gnu" \
OPENCV_INCLUDE_PATHS="/opt/opencv/include,/opt/opencv/include/opencv4" \
Expand All @@ -63,6 +63,10 @@ RUN OPENCV_LINK_LIBS="opencv_imgcodecs,opencv_imgproc,opencv_core" \

FROM debian:bookworm-slim

RUN apt-get update && \
apt-get install -y libssl-dev && \
rm -rf /var/lib/apt/lists/*

WORKDIR /usr/local/bin

COPY --from=builder /usr/local/cargo/bin/surya /usr/local/bin/surya
Expand Down

0 comments on commit 46829e1

Please sign in to comment.