Created
May 15, 2015 18:44
-
-
Save brendanstennett/6894c1f9603e062d5e29 to your computer and use it in GitHub Desktop.
Dockerfile for node.js ...a bit hacky but it works
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 quay.io/thinkdataworks/node | |
MAINTAINER Brendan Stennett <[email protected]> | |
ENV PACKAGE_NAME <package> # this should match the package name in package.json | |
ENV NODE_PATH /usr/local/lib/node_modules/$PACKAGE_NAME/node_modules | |
ENV PATH /usr/local/lib/node_modules/$PACKAGE_NAME/node_modules/.bin:$PATH | |
WORKDIR /app | |
COPY package.json /app/ | |
RUN npm install -g | |
CMD node app.js | |
COPY . /app/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment