This repo contains scripts to create docker images which will be available in multiple variants.
The purpose is to publish docker images with a working opencv installation and keep them as small as possible while delivering all functions. The opencv version on node shall work for opencv4nodejs.
The published images follow a naming convention.
The image name follows the format:
surnet/<os>-<base>-opencv
or surnet/<os/base>-opencv
<os>
matches the underlaying os.<base>
matches the used base image.<os/base>
matches the used base image if the os and base image are the same.
e.g. surnet/alpine-node-opencv
or surnet/alpine-opencv
The tags represent version numbers which follow the format:
<1>-<2>-<3>
<1>
matches the version of the base image.<2>
matches the opencv version.<3>
matches the Edition (see next chapter).
e.g. 16.14.2-4.5.4-base
There are two editions available for each version.
base
contains only opencv. This should be sufficient for most use-casestext
contains opencv and the module text from opencv_contrib.
This image can be used as a base for your project.
For a list of available versions please see the page on Docker Hub or the GitHub Container Registry. If a version you would like is missing please open an issue on this repo.
FROM surnet/alpine-opencv:<version>
FROM ghcr.io/surnet/alpine-opencv:<version>
This image can be used as a base for your NodeJS project. The opencv version is compatible and configured for use with opencv4nodejs.
For a list of available versions please see the page on Docker Hub or the GitHub Container Registry. If a version you would like is missing please open an issue on this repo.
FROM surnet/alpine-node-opencv:<version>
FROM ghcr.io/surnet/alpine-node-opencv:<version>
Please feel free to open a issue or pull request with suggestions.
Keep in mind that the build process of these container takes some time.
Based upon the following repos/inputs: