Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created February 14, 2019 14:55
Show Gist options
  • Save tkssharma/cbce923c57a340acffd61c4f068cab9b to your computer and use it in GitHub Desktop.
Save tkssharma/cbce923c57a340acffd61c4f068cab9b to your computer and use it in GitHub Desktop.
FROM node:carbon
# Create app directory
WORKDIR /usr/src/app
# Bundle app source
COPY ./package.json .
# npm install
RUN apt-get update && npm install
# expose api port and debug port
EXPOSE 3000 9229
CMD [ "npm", "run", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment