Sign inSign up

m03geek/opencv-node

By m03geek

•Updated over 8 years ago

Docker image with bundled opencv and node.js runtime.

Image
0

1.3K

m03geek/opencv-node repository overview

⁠docker-opencv-node

Docker image with compiled OpenCV and Node.js.

Based on opencv image⁠

⁠Versions (latest)

  • node - 10.3.0
  • opencv - 3.4.1

⁠Notes

If you want to use some native modules you'll need to install at least python.

So you can add following lines to your dockerfile.

⁠Alpine

For alpine you will also need libstdc++ for building native modules.

RUN apk add --virtual .build-deps python libstdc++ gcc g++

Also you may need libc6-compat if your native modules will use glibc.

After bould you may want ot delete build deps in order to reduce image size.

RUN apk del .build-deps

Remember: you'll need to delete them in one layer with adding them or use --squash to reduce actual size.

⁠Stretch (debian)

RUN apt-get update && apt-get install -y --no-install-recommends python build-essential

⁠Node.js lib compatibility

  • opencv4nodejs⁠ - native module, see installing instructions above and follow module documentation.

⁠Installing opencv4nodejs

FROM m03geek/opencv-node:alpine
RUN apk update && apk add -u --no-cache python make g++
RUN npm i opencv4nodejs

⁠Other images:

⁠Without FFmpeg

⁠With FFmpeg

OpenCVOpenCV+DlibOpenCV+Dlib+Node.jsOpenCV+Node.js
Docker⁠Docker⁠Docker⁠Docker⁠
Github⁠Github⁠Github⁠Github⁠

Tag summary

Content type

Image

Digest

Size

77.7 MB

Last updated

over 8 years ago

docker pull m03geek/opencv-node:alpine-10.3.0