summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index a4750ca..407cb16 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,14 +1,15 @@
-FROM alpine as build
+# sudo docker run -p 8080:80 -it $(sudo docker build -q .)
+
+FROM alpine AS build
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/graph.c
+RUN clang --target=wasm32 -nostdlib -fno-builtin -mbulk-memory -Wl,--no-entry,--allow-undefined -o /usr/index.wasm /usr/examples/ui.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" ]