Dockerfile: Command Placement?! (pt. 1)

Tech: Dockerfile, Sass, CSS, node, angular 1.5

Challenge: seeing curious error when building ng container

Error!

blog_dockerfile_1
 
Curious… let’s take a look at the Dockerfile…

blog_dockerfile_2

 
After not too much troubleshooting… the problem is the placement of

RUN npm rebuild node-sass

 
!! By simply placing the rebuild after line 12 ADD ., all is well. Part 2 coming… why?