summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-11-01 03:28:20 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-11-01 03:28:20 +0100
commiteb0c1592d49de956c8c4d83a831fab3cf0372acb (patch)
tree51af9b577499b85397267baed0db96046e12aefe /Dockerfile
parent3d1e81ef18c4b2138b834459262f262e44a3397d (diff)
downloadreduced_system_layer-eb0c1592d49de956c8c4d83a831fab3cf0372acb.zip
Simple WebAssembly impl
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 04fb96a..4b0f30f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
FROM emscripten/emsdk as build
COPY reduced_system_layer.c /usr/reduced_system_layer.c
-RUN emcc -o /usr/index.wasm /usr/reduced_system_layer.c
+RUN emcc -D REDUCED_SYSTEM_LAYER_EXAMPLE -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s EXPORTED_FUNCTIONS=_js_main,_js_init,_js_pixels,_js_frame -o /usr/index.wasm /usr/reduced_system_layer.c
FROM nginx:alpine
EXPOSE 80