A Docker image build on top of emscripten/emsdk image.
This image also contains pre-build opencv (with contrib & enable nonfree) wasm binaries, the build process is following this guild from opencv.
The purpose of this project is to provide a "ready to use" Docker image for other projects.
build with command
docker build -t gavin1937/emsdk-cv-wasm:4.8.0 --build-arg="VERSION=4.8.0" .
- Note that, you need to supply the right version of opencv in both
tag
andbuild-arg
- file
docker-image-config.json
contains all the opencv versions and platforms that we build
- Environment Variables
EMSCRIPTEN
: emscripten upstream directoryOPENCV_VERSION
: opencv versionOPENCV_SRC
: opencv source code directoryOPENCV_BUILD
: opencv build directoryOPENCV_BUILD_WASM
: opencv build_wasm directory
- OpenCV C++ library is also installed to the enviroment via
cmake --install
Use inside your Dockerfile
FROM gavin1937/emsdk-cv-wasm:4.8.0
WORKDIR /src
COPY . .
# build your wasm
RUN ...