skia2/infra/wasm-common/docker/emsdk-base/Dockerfile
Kevin Lubick fa5a138170 [canvaskit] Update to build with emscripten 1.38.47
Bug: skia:9052
Change-Id: Ic1aec2c9b8ace556f5b77862582894f59fd26b64
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/247302
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2019-10-09 15:08:10 +00:00

28 lines
557 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
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