Created
April 20, 2015 15:55
-
-
Save dannycroft/1c197cdd5fed6b162b0c to your computer and use it in GitHub Desktop.
Dockerfile
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:utopic | |
| RUN apt-get update \ | |
| && apt-get install -y --force-yes \ | |
| apt-transport-https \ | |
| build-essential \ | |
| curl \ | |
| lsb-release \ | |
| python-all \ | |
| rlwrap \ | |
| && rm -rf /var/lib/apt/lists/*; | |
| RUN curl https://deb.nodesource.com/node/pool/main/n/nodejs/nodejs_0.10.36-1nodesource1~utopic1_amd64.deb > node.deb \ | |
| && dpkg -i node.deb \ | |
| && rm node.deb | |
| RUN npm install -g pangyp\ | |
| && ln -s $(which pangyp) $(dirname $(which pangyp))/node-gyp\ | |
| && npm cache clear\ | |
| && node-gyp configure || echo "" | |
| ENV NODE_ENV production | |
| ADD service /usr/src/service¬ | |
| WORKDIR /usr/src/service¬ | |
| RUN npm install | |
| RUN npm run build | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment