Add worker experimental flag for 10.x (#112)
* Add worker experimental flag for 10.x
* Cap letter for comment
* bump nodejs to from 10.15.0 to 10.15.1
diff --git a/core/nodejs10Action/Dockerfile b/core/nodejs10Action/Dockerfile
index 56575d5..391e1ff 100644
--- a/core/nodejs10Action/Dockerfile
+++ b/core/nodejs10Action/Dockerfile
@@ -15,7 +15,7 @@
# limitations under the License.
#
-FROM node:10.15.0-stretch
+FROM node:10.15.1-stretch
RUN apt-get update && apt-get install -y \
imagemagick \
graphicsmagick \
@@ -28,4 +28,5 @@
RUN cd / && npm install --no-package-lock \
&& npm cache clean --force
EXPOSE 8080
-CMD node --expose-gc app.js
+# The flag --experimental-worker is to be use with care as it's an expirimental feature more info here https://nodejs.org/docs/latest-v10.x/api/worker_threads.html
+CMD node --experimental-worker --expose-gc app.js