Skip to content

Instantly share code, notes, and snippets.

@d00rman
Created July 12, 2016 16:20
Show Gist options
  • Save d00rman/dcf7810c55c63ad6227be9b3abcd6106 to your computer and use it in GitHub Desktop.
Save d00rman/dcf7810c55c63ad6227be9b3abcd6106 to your computer and use it in GitHub Desktop.
Parsoid Dockerfile
FROM debian:jessie
RUN apt-get update && apt-get install -y nodejs nodejs-legacy npm git wget && rm -rf /var/lib/apt/lists/*
ENV NVM_DIR /usr/local/nvm
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash && . $NVM_DIR/nvm.sh && nvm install 4.4.6
RUN groupadd -g 1000 -r rungroup && useradd -m -r -g rungroup -u 1000 runuser
USER runuser
ENV HOME=/home/runuser LINK=g++
ENV IN_DOCKER=1
CMD . $NVM_DIR/nvm.sh && nvm use 4.4.6 && npm install --production && npm install heapdump && npm dedupe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment