| # |
| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| FROM nodejsactionbase |
| |
| # based on https://github.com/nodejs/docker-node |
| ENV NODE_VERSION 6.16.0 |
| RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" \ |
| && tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ |
| && rm "node-v$NODE_VERSION-linux-x64.tar.gz" |
| |
| |
| # workaround for this: https://github.com/npm/npm/issues/9863 |
| RUN cd $(npm root -g)/npm \ |
| && npm install fs-extra \ |
| && sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs\.move/ ./lib/utils/rename.js |
| |
| WORKDIR /nodejsAction |
| |
| # Install app dependencies |
| RUN rm -rf .project .settings build.xml Dockerfile README node_modules logs |
| RUN cd / && npm install . |
| # In nodejsActionBase we copied the package.json file to the root of the container, this is what we are installing here, as to not be overriden by user set packages |
| RUN cd / && npm install --no-package-lock \ |
| apn@2.1.2 \ |
| async@2.1.4 \ |
| body-parser@1.15.2 \ |
| btoa@1.1.2 \ |
| cheerio@0.22.0 \ |
| cloudant@1.6.2 \ |
| commander@2.9.0 \ |
| consul@0.27.0 \ |
| cookie-parser@1.4.3 \ |
| cradle@0.7.1 \ |
| errorhandler@1.5.0 \ |
| express@4.14.0 \ |
| express-session@1.14.2 \ |
| glob@7.1.1 \ |
| gm@1.23.0 \ |
| lodash@4.17.2 \ |
| log4js@0.6.38 \ |
| iconv-lite@0.4.15 \ |
| marked@0.3.6 \ |
| merge@1.2.0 \ |
| moment@2.17.0 \ |
| mongodb@2.2.11 \ |
| mustache@2.3.0 \ |
| nano@6.2.0 \ |
| node-uuid@1.4.7 \ |
| nodemailer@2.6.4 \ |
| oauth2-server@2.4.1 \ |
| openwhisk@3.18.0 \ |
| pkgcloud@1.4.0 \ |
| process@0.11.9 \ |
| pug@">=2.0.0-beta6 <2.0.1" \ |
| redis@2.6.3 \ |
| request@2.79.0 \ |
| request-promise@4.1.1 \ |
| rimraf@2.5.4 \ |
| semver@5.3.0 \ |
| sendgrid@4.7.1 \ |
| serialize-error@3.0.0 \ |
| serve-favicon@2.3.2 \ |
| socket.io@1.6.0 \ |
| socket.io-client@1.6.0 \ |
| superagent@3.0.0 \ |
| swagger-tools@0.10.1 \ |
| tmp@0.0.31 \ |
| twilio@2.11.1 \ |
| underscore@1.8.3 \ |
| uuid@3.0.0 \ |
| validator@6.1.0 \ |
| watson-developer-cloud@2.29.0 \ |
| when@3.7.7 \ |
| winston@2.3.0 \ |
| ws@1.1.1 \ |
| xml2js@0.4.17 \ |
| xmlhttprequest@1.8.0 \ |
| yauzl@2.7.0 |
| |
| |
| # See app.js |
| CMD node --expose-gc app.js |