server/docker: actually disable opencv build this time?

This commit is contained in:
Koushik Dutta
2021-10-02 19:54:09 -07:00
parent e6547c6e4a
commit 082c065be5
3 changed files with 0 additions and 21 deletions

View File

@@ -7,6 +7,5 @@ COPY . .
WORKDIR /server
ENV OPENCV4NODEJS_DISABLE_AUTOBUILD=true
RUN npm install
RUN ./build-opencv4nodejs-linux.sh
RUN npm run build
CMD npm run serve-no-build

View File

@@ -1,6 +0,0 @@
export OPENCV4NODEJS_DEFINES="remove_cv_t=remove_cv"
export OPENCV4NODEJS_INCLUDES=/usr/local/Cellar/opencv@3/3.4.15/include/
export OPENCV4NODEJS_BIN=/usr/local/Cellar/opencv@3/3.4.15/bin/
export LDFLAGS=$(pkg-config opencv --libs)
cd node_modules/@koush/opencv4nodejs
npm run build

View File

@@ -1,14 +0,0 @@
HAS_OPENCV_3=$(pkg-config --modversion opencv)
if [ ! -z "$HAS_OPENCV_3" ]
then
OPENCV_VERSION=opencv
else
OPENCV_VERSION=opencv4
fi
echo $OPENCV_VERSION
export CFLAGS=$(pkg-config --cflags $OPENCV_VERSION)
export CXXFLAGS=$(pkg-config --cflags $OPENCV_VERSION)
export LDFLAGS="-Wl,--no-as-needed $(pkg-config --libs $OPENCV_VERSION)"
echo $LDFLAGS
cd node_modules/@koush/opencv4nodejs
npm run build