summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-10-31 23:50:51 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-10-31 23:50:51 +0100
commit3d1e81ef18c4b2138b834459262f262e44a3397d (patch)
treecf5114a1494f84bf21855edddc1112d40412c90c /Dockerfile
parent25531d817bf6d6ef282855f44a64cd172d0bc2ec (diff)
downloadreduced_system_layer-3d1e81ef18c4b2138b834459262f262e44a3397d.zip
Add Dockerfile for wasm compilation
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..04fb96a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+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
+
+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" ]