1*22b98dedSAlex CrichtonFROM ubuntu:16.04 2*22b98dedSAlex Crichton 3*22b98dedSAlex CrichtonRUN apt-get update && \ 4*22b98dedSAlex Crichton apt-get install -y --no-install-recommends \ 5*22b98dedSAlex Crichton ca-certificates \ 6*22b98dedSAlex Crichton curl \ 7*22b98dedSAlex Crichton gcc \ 8*22b98dedSAlex Crichton git \ 9*22b98dedSAlex Crichton libc6-dev \ 10*22b98dedSAlex Crichton python \ 11*22b98dedSAlex Crichton xz-utils 12*22b98dedSAlex Crichton 13*22b98dedSAlex CrichtonCOPY emscripten.sh / 14*22b98dedSAlex CrichtonRUN bash /emscripten.sh 15*22b98dedSAlex Crichton 16*22b98dedSAlex CrichtonENV PATH=$PATH:/rust/bin \ 17*22b98dedSAlex Crichton CARGO_TARGET_WASM32_UNKNOWN_EMSCRIPTEN_RUNNER=node-wrapper.sh 18*22b98dedSAlex Crichton 19*22b98dedSAlex CrichtonCOPY emscripten-entry.sh / 20*22b98dedSAlex CrichtonCOPY docker/wasm32-unknown-emscripten/node-wrapper.sh /usr/local/bin/node-wrapper.sh 21*22b98dedSAlex CrichtonENTRYPOINT ["/emscripten-entry.sh"] 22