Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
install nvm and stuff
  • Loading branch information
guykisel committed Jul 21, 2017
commit c6d7966c49b9e233fa366ae154394148f4b85685
26 changes: 25 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
FROM tiangolo/uwsgi-nginx-flask:flask

RUN apt-get update && apt-get install -y ruby-full haskell-platform shellcheck nodejs build-essential
RUN apt-get update && apt-get install -y \
curl git bzr mercurial build-essential \
zip ruby-full haskell-platform shellcheck \
python-pip python-dev \
nodejs build-essential

ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION node

# Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default \
&& npm install -g jsonlint jscs eslint jshint

ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH

RUN echo '. "$NVM_DIR/nvm.sh"' >> /etc/profile
RUN echo NODE_VERSION=$NODE_VERSION >> /etc/environment
RUN echo NVM_DIR=$NVM_DIR >> /etc/environment
RUN echo NODE_PATH=$NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules >> /etc/environment
RUN echo PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH >> /etc/environment

RUN pip install -U pip

Expand Down