This is an automated email from the ASF dual-hosted git repository.
japetrsn pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-nodejs.git
The following commit(s) were added to refs/heads/master by this push:
new df59db9 Add worker experimental flag for 10.x (#112)
df59db9 is described below
commit df59db9bca4c0bebe5b5147f3515827156f1b84a
Author: Carlos Santana <[email protected]>
AuthorDate: Mon Feb 18 16:52:32 2019 -0500
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
---
core/nodejs10Action/Dockerfile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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 @@ COPY ./package.json /
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