skia2/infra/wasm-common/docker/emsdk-base/Dockerfile
Kevin Lubick 85de152dfa Move common canvas/pathkit dockerfiles to more intuitive location
Also rename emsdk-base -> emsdk-release so it is consistent with
the container name.

Bug: skia:
NOTRY: true
Change-Id: Idec19bdeb64a64120d0890b2987c2dce0a57535a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206909
Reviewed-by: Stephan Altmueller <stephana@google.com>
2019-04-09 23:14:13 +00:00

29 lines
626 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/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 sdk-1.38.27-64bit
RUN ./emsdk activate sdk-1.38.27-64bit
RUN /bin/bash -c "source ./emsdk_env.sh"
ENV EMSDK=/opt/emsdk
RUN mkdir -p /OUT /SRC