Created
July 12, 2016 16:20
-
-
Save d00rman/dcf7810c55c63ad6227be9b3abcd6106 to your computer and use it in GitHub Desktop.
Parsoid Dockerfile
This file contains 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 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