Skip to content

Instantly share code, notes, and snippets.

@ManfredLange
Last active August 19, 2018 04:16
Show Gist options
  • Save ManfredLange/8706796adb20e37a046d11f0fb8f907f to your computer and use it in GitHub Desktop.
Save ManfredLange/8706796adb20e37a046d11f0fb8f907f to your computer and use it in GitHub Desktop.
Dockerfile with nodejs options for debugger support
FROM node:10-alpine
RUN mkdir -p /home/nodejs/app
WORKDIR /home/nodejs/app
COPY . .
RUN npm install --production
CMD ["node", "--inspect=0.0.0.0:9229", "--inspect-brk", "hello_express.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment