FROM emscripten/emsdk as build 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 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" ]