e70c6b13dd
Bug: skia: Change-Id: I780912e1c481765d2d17d2ce66a27470ee8b4912 Reviewed-on: https://skia-review.googlesource.com/c/168483 Reviewed-by: Kevin Lubick <kjlubick@google.com>
29 lines
713 B
Docker
29 lines
713 B
Docker
# 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 AS build
|
|
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/juj/emsdk.git
|
|
|
|
WORKDIR /opt/emsdk
|
|
|
|
RUN ./emsdk update-tags
|
|
|
|
# These versions were available and worked on my local desktop as of Nov 6 2018.
|
|
RUN ./emsdk install emscripten-1.38.16 node-8.9.1-64bit clang-e1.38.16-64bit
|
|
|
|
RUN ./emsdk activate emscripten-1.38.16 node-8.9.1-64bit clang-e1.38.16-64bit
|
|
|
|
RUN /bin/bash -c "source ./emsdk_env.sh"
|
|
|
|
ENV EMSDK=/opt/emsdk
|
|
|
|
RUN mkdir -p /OUT /SRC
|
|
|