Skip to content

Instantly share code, notes, and snippets.

@thenayr
Created February 22, 2017 22:35
Show Gist options
  • Save thenayr/0fe89c1d2d4b9cbd9a3f42a97ddc8185 to your computer and use it in GitHub Desktop.
Save thenayr/0fe89c1d2d4b9cbd9a3f42a97ddc8185 to your computer and use it in GitHub Desktop.
Simple Dockerfile for Node 6.9.5 alpine
FROM node:6.9.5-alpine
RUN mkdir -p /code
WORKDIR /code
ADD . /code
RUN npm set progress=false && \
npm install -s --no-progress && \
npm run build && \
npm prune --production
CMD [ "npm", "start" ]
EXPOSE 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment