diff --git a/nodejs10/Dockerfile b/nodejs10/Dockerfile index 34e4aca..b601156 100644 --- a/nodejs10/Dockerfile +++ b/nodejs10/Dockerfile @@ -4,7 +4,7 @@ COPY ./package.json / RUN apt-get update \ # Update some installed packages to get security fixes. - && apt-get install -y --no-install-recommends e2fsprogs file git openssl subversion \ + && apt-get install -y --no-install-recommends curl e2fsprogs file git openssl subversion \ # Cleanup apt data, we do not need them later on. && rm -rf /var/lib/apt/lists/* \ # We do not have mysql-server installed but mysql-common contains config files (/etc/mysql/my.cnf) for it. diff --git a/nodejs12/Dockerfile b/nodejs12/Dockerfile index d80acfd..5468ce5 100644 --- a/nodejs12/Dockerfile +++ b/nodejs12/Dockerfile @@ -4,7 +4,7 @@ COPY ./package.json / RUN apt-get update \ # Update some installed packages to get security fixes. - && apt-get install -y --no-install-recommends e2fsprogs file git openssl subversion \ + && apt-get install -y --no-install-recommends curl e2fsprogs file git openssl subversion \ # Cleanup apt data, we do not need them later on. && rm -rf /var/lib/apt/lists/* \ # We do not have mysql-server installed but mysql-common contains config files (/etc/mysql/my.cnf) for it. diff --git a/nodejs8/Dockerfile b/nodejs8/Dockerfile index 2eae8f8..b0e1baf 100644 --- a/nodejs8/Dockerfile +++ b/nodejs8/Dockerfile @@ -1,6 +1,14 @@ FROM openwhisk/action-nodejs-v8:3e843c0 COPY ./package.json / -RUN cd / && npm install --production \ +RUN apt-get update \ + # Update some installed packages to get security fixes. + && apt-get install -y --no-install-recommends curl \ + # Cleanup apt data, we do not need them later on. + && rm -rf /var/lib/apt/lists/* \ + # Start adding/updating npm packages. + && cd / \ + && npm install --production \ && npm cache clean --force + COPY iam-client/iam-openwhisk-main.js /node_modules/openwhisk/lib/ RUN sed -i.bak 's/lib\/main.js/lib\/iam-openwhisk-main.js/' /node_modules/openwhisk/package.json