Skip to content

Instantly share code, notes, and snippets.

@suru-dissanaike
Created May 13, 2020 18:36
Show Gist options
  • Select an option

  • Save suru-dissanaike/dbdcec7c8a0d85fb00afe92a2e24bb1b to your computer and use it in GitHub Desktop.

Select an option

Save suru-dissanaike/dbdcec7c8a0d85fb00afe92a2e24bb1b to your computer and use it in GitHub Desktop.
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