1# A Docker image that has the Emscripten SDK installed to /opt/emsdk 2# Use this image to compile C/C++ code to WASM. 3 4FROM launcher.gcr.io/google/clang-debian9 5RUN apt-get update && apt-get upgrade -y && apt-get install -y \ 6 git \ 7 python \ 8 nodejs \ 9 default-jre 10 11RUN cd /opt \ 12 && git clone https://github.com/juj/emsdk.git 13 14WORKDIR /opt/emsdk 15 16RUN ./emsdk update-tags 17 18# These versions were available and worked on my local desktop as of Nov 6 2018. 19RUN ./emsdk install sdk-1.38.27-64bit 20 21RUN ./emsdk activate sdk-1.38.27-64bit 22 23RUN /bin/bash -c "source ./emsdk_env.sh" 24 25ENV EMSDK=/opt/emsdk 26 27RUN mkdir -p /OUT /SRC 28 29