diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-11-01 05:04:25 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-11-01 05:04:25 +0100 |
commit | 63c3b9bda3fe7eb8750f084ff070f40b967f9532 (patch) | |
tree | 8b027ed24c91ea4de2479108d5886c6675c0504c /Dockerfile | |
parent | eb0c1592d49de956c8c4d83a831fab3cf0372acb (diff) | |
download | reduced_system_layer-63c3b9bda3fe7eb8750f084ff070f40b967f9532.zip |
Build wasm without Emscripten
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ -FROM emscripten/emsdk as build +FROM alpine as build +RUN apk add clang lld COPY reduced_system_layer.c /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 +RUN clang -D REDUCED_SYSTEM_LAYER_EXAMPLE --target=wasm32 -nostdlib -Wl,--no-entry,--allow-undefined -o /usr/index.wasm /usr/reduced_system_layer.c FROM nginx:alpine EXPOSE 80 |