Skip to main content

Docker

Usage: cppjs docker [options] [command]

manage docker

Options:
-h, --help display help for command

Commands:
run run docker application
create create docker container
start start docker container
stop stop docker container
delete delete docker container
help [command] display help for command

The bugra9/cpp.js Docker image includes all the necessary tools for compiling to Web and Android using Cpp.js, such as Emscripten, Android SDK, Android NDK, JDK, SWIG, CMake, and SQLite3. To run an application within this Docker image, the command cpp.js run is used.

Here is a minimal example:

cppjs docker run -- cmake --version
cmake version 3.28.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
info

Docker Image: You can access the docker image from this link.
Dockerfile: You can access the dockerfile from this link.
Run Function: You can access the run function from this link.