emscripten の docker image を作りたい
3.2K
なので docker を勉強して dockerFile を作ってみたとさ
{
"output": "wasm",
"files": [
{
"type": "cpp",
"name": "file.cpp",
"options": "-O3 -std=c++14",
"src": "int main() { return 0; }"
}
],
"link_options": ""
}
curl でタスクを投げる
curl -X POST -H 'Content-Type:application/json' -d '{
"output": "wasm",
"files": [
{
"type": "cpp",
"name": "file.cpp",
"options": "-O3 -std=c++14",
"src": "int main() { return 0; }"
}
],
"link_options": ""
}' \
https://emscripten-compiler.herokuapp.com/build
{
"tasks": [
{
"name": "building file.cpp",
"console": "...",
"file": "file.cpp",
"output": "AGFzbQEAAAAAD...",
"success": true,
},
{
"name": "linking wasm",
"console": "...",
"success": true,
}
],
"output": "AGFzbQEAAAAAD...",
"jsFile": "Ly8gQ29weXJpZ...",
"success": true,
"message": "Success"
}
Content type
Image
Digest
sha256:d6c72f55b…
Size
713.5 MB
Last updated
over 1 year ago
docker pull nokotan/emscripten-compiler:4.0.10