From 3359f068dc9e8ac036f0f709aeccf11dfba3cf03 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Mon, 6 Jan 2025 13:12:18 +0100 Subject: No buildin --- Dockerfile | 3 +- index.htm | 202 ++++++++++++++++++++++++------------------------- reduced_system_layer.c | 16 +--- 3 files changed, 106 insertions(+), 115 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff21beb..7054730 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,11 @@ RUN apk add clang lld COPY examples /usr/examples COPY reduced_system_layer.c /usr/reduced_system_layer.c COPY graphics.c /usr/graphics.c -RUN clang --target=wasm32 -nostdlib -Wl,--no-entry,--allow-undefined -o /usr/index.wasm /usr/examples/sinewave.c +RUN clang --target=wasm32 -nostdlib -fno-builtin -Wl,--no-entry,--allow-undefined -o /usr/index.wasm /usr/examples/graph.c FROM nginx:alpine EXPOSE 80 COPY --from=build /usr/index.wasm /srv/index.wasm COPY index.htm /srv/index.htm COPY nginx.conf /etc/nginx/nginx.conf -RUN ls -la /srv/ ENTRYPOINT [ "nginx" ] diff --git a/index.htm b/index.htm index ded4780..cb1f474 100644 --- a/index.htm +++ b/index.htm @@ -56,105 +56,108 @@ );