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
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 inDockerfile
with one line.From
to
Looks like that was a formatting error in the markdown – should be fixed now. That instruction is definitely all one line. Thanks for catching!