blob: 360691b0f0c8f578c0be87e3b03cad4fd259c77d [file] [log] [blame]
# A Docker image that has the Emscripten SDK installed to /opt/emsdk
# Use this image to compile C/C++ code to WASM.
FROM launcher.gcr.io/google/clang-debian9
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
git \
python \
nodejs \
default-jre
RUN cd /opt \
&& git clone https://github.com/emscripten-core/emsdk.git
WORKDIR /opt/emsdk
RUN ./emsdk update-tags
RUN ./emsdk install sdk-1.38.47-64bit
RUN ./emsdk activate sdk-1.38.47-64bit
RUN /bin/bash -c "source ./emsdk_env.sh"
ENV EMSDK=/opt/emsdk
RUN mkdir -p /OUT /SRC