Skip to content

Instantly share code, notes, and snippets.

@kamikat
Last active April 9, 2016 07:42
Show Gist options
  • Save kamikat/7ac9490ae6cb998424f792cbc84746da to your computer and use it in GitHub Desktop.
Save kamikat/7ac9490ae6cb998424f792cbc84746da to your computer and use it in GitHub Desktop.
Generic Dockerfile building a Node.js server container image.
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