Add skia-wasm-release image.
This should let us pipe continuous builds into jsfiddle.skia.org and
skottie.skia.org
Bug: skia:
Change-Id: I587e1293237d42dfdacae0757f44634f29d6f251
Reviewed-on: https://skia-review.googlesource.com/c/168440
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
diff --git a/docker/skia-wasm-release/Dockerfile b/docker/skia-wasm-release/Dockerfile
new file mode 100644
index 0000000..9520979
--- /dev/null
+++ b/docker/skia-wasm-release/Dockerfile
@@ -0,0 +1,18 @@
+# Dockerfile for building the WASM libraries used by jsfiddle.skia.org
+FROM gcr.io/skia-public/emsdk-release:prod
+
+RUN cd /tmp \
+ && git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' \
+ && mkdir -p /tmp/skia \
+ && cd /tmp/skia \
+ && /tmp/depot_tools/fetch skia
+
+RUN cd /tmp/skia/skia \
+ && python tools/git-sync-deps \
+ && ./bin/fetch-gn
+
+# PathKit should be in /tmp/skia/skia/out/pathkit/
+RUN /tmp/skia/skia/modules/pathkit/compile.sh
+
+# CanvasKit should be in /tmp/skia/skia/out/canvaskit_wasm
+RUN /tmp/skia/skia/experimental/canvaskit/compile.sh