Last active
April 9, 2016 07:42
-
-
Save kamikat/7ac9490ae6cb998424f792cbc84746da to your computer and use it in GitHub Desktop.
Generic Dockerfile building a Node.js server container image.
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 node:5.3.0 | |
WORKDIR /usr/src/app | |
ENV NODE_ENV=production NPM_CONFIG_REGISTRY=http://registry.npm.taobao.org/ | |
COPY package.json ./package.json | |
RUN npm install && rm -rf /tmp/npm-* | |
COPY . ./ | |
ENTRYPOINT [ "./entrypoint-docker-compose.sh", "node", "index.js" ] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment