Created
May 13, 2020 18:36
-
-
Save suru-dissanaike/dbdcec7c8a0d85fb00afe92a2e24bb1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:bionic | |
| RUN apt-get update && apt-get install -y \ | |
| software-properties-common \ | |
| apt-utils \ | |
| curl \ | |
| cppcheck \ | |
| flawfinder | |
| RUN add-apt-repository ppa:mongoose-os/mos && apt-get update && apt-get install -y mos | |
| # install node | |
| ENV NODE_VERSION=12.14.1 | |
| RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | |
| ENV NVM_DIR=/root/.nvm | |
| RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} | |
| RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} | |
| RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} | |
| ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" | |
| RUN node --version | |
| RUN npm --version | |
| RUN npm install -g jshint | |
| WORKDIR /home/dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment