Skip to content

Instantly share code, notes, and snippets.

@ashutoshkarna03
Created June 5, 2020 19:50
Show Gist options
  • Save ashutoshkarna03/48aadf91e607deb893b64fa47b9b8683 to your computer and use it in GitHub Desktop.
Save ashutoshkarna03/48aadf91e607deb893b64fa47b9b8683 to your computer and use it in GitHub Desktop.
FROM node:10
RUN mkdir /myapp
# Create app directory
WORKDIR /myapp
COPY ./package.json /myapp/package.json
COPY ./package-lock.json /myapp/package-lock.json
RUN npm install
RUN npm install -g nodemon
# Bundle app source
COPY . /myapp
EXPOSE 8080
CMD [ "nodemon", "app.js" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment