Browse Source

add setup.sh

master
zeus 3 years ago
parent
commit
1b2edc64de
  1. 3
      Dockerfile
  2. 4
      opencv4nodejs_webcam/install-npm-opencv.sh

3
Dockerfile

@ -16,9 +16,6 @@ ENV GID=23456
RUN addgroup -S node \
&& adduser -D -g "" -h "/home/${USERhome}" -G "${USERhome}" -u "${UID}" "${USERhome}"
COPY \
setup.sh \
extrapackages \

4
opencv4nodejs_webcam/install-npm-opencv.sh

@ -3,7 +3,7 @@
cd /
mkdir /opencv \
&& mv /home/${USER1}/${NODEPROJECT}/dlib-master.zip /dlib.zip \
&& mv /home/${USER1}/${NODEPROJECT}/opencv.zip /home/${USER1}/${NODEPROJECT}/opencv_contrib.zip /opencv \
&& mv /home/${USER1}/${NODEPROJECT}/opencv-4.x.zip /home/${USER1}/${NODEPROJECT}/opencv_contrib.zip /opencv \
&& cd /opencv \
&& unzip -qq opencv.zip \
&& mv opencv-${OPENCV_VERSION} opencv \
@ -85,6 +85,6 @@ cp /dlib/dlib/*.txt $LIB_PREFIX/include/dlib/ \
apk del .build-dependencies
apk add -u --no-cache $RUNTIME_DEPS
rm -rf /home/${USER1}/${NODEPROJECT}/opencv.zip /home/${USER1}/${NODEPROJECT}/opencv_contrib.zip /home/${USER1}/${NODEPROJECT}/dlib-master.zip
rm -rf /home/${USER1}/${NODEPROJECT}/opencv-4.x.zip /home/${USER1}/${NODEPROJECT}/opencv_contrib.zip /home/${USER1}/${NODEPROJECT}/dlib-master.zip
rm -rf /var/cache/apk/* /usr/share/man /usr/local/share/man /tmp/*

Loading…
Cancel
Save