Skip to content

Instantly share code, notes, and snippets.

@jradesenv
Created June 23, 2016 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jradesenv/d3b5c09f2fcf3a41f392d665e4ca0fb9 to your computer and use it in GitHub Desktop.
Save jradesenv/d3b5c09f2fcf3a41f392d665e4ca0fb9 to your computer and use it in GitHub Desktop.
# Use Node v5 as the base image.
FROM node:5
#this doesn't list any files from app folder
RUN ls
RUN rm -rf /node_modules
# Install dependencies (this gives me error 'coz it can't find package.json, wich is inside my app folder)
RUN npm install -g bower && npm install
RUN bower install --allow-root
# Expose our server port.
EXPOSE 3000
# Run our app.
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment