DEV Community

Discussion on: How To Build a Node.js Application with Docker [Quickstart]

Collapse
 
karataev profile image
Eugene Karataev

Thanks for the great introduction to Docker!

If you follow the tutorial and like me have the error
Error response from daemon: Dockerfile parse error line 4: unknown instruction: /HOME/NODE/APP
during docker build, then replace lines 3,4 in Dockerfile with one line.

From

RUN mkdir -p /home/node/app/node_modules && chown -R node:node 
/home/node/app

to

RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
Collapse
 
katjuell profile image
katjuell

Looks like that was a formatting error in the markdown – should be fixed now. That instruction is definitely all one line. Thanks for catching!