diff --git a/.dockerignore b/.dockerignore index 0e32b67..e7bc7c3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,9 +4,6 @@ # Allow to run the test script inside the Docker container !/docker/test_dockerimage.sh -# Allow the Dockerfile for future re-creation/reference -!/docker/Dockerfile - # Ignore unnecessary files inside top-level directory *.bat *.csh diff --git a/docker/Dockerfile b/docker/Dockerfile index e183c21..f58c5ce 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -28,11 +28,15 @@ RUN echo "## Install Emscripten" \ && echo "## Done" # This generates configuration that contains all valid paths according to installed SDK +# TODO(sbc): We should be able to use just emcc -v here but it doesn't +# currently create the sanity file. RUN cd ${EMSDK} \ && echo "## Generate standard configuration" \ && ./emsdk activate ${EMSCRIPTEN_VERSION} \ && chmod 777 ${EMSDK}/upstream/emscripten \ && chmod -R 777 ${EMSDK}/upstream/emscripten/cache \ + && echo "int main() { return 0; }" > hello.c \ + && ${EMSDK}/upstream/emscripten/emcc -c hello.c \ && cat ${EMSDK}/upstream/emscripten/cache/sanity.txt \ && echo "## Done"