.dockerignore file doesn't seem to be respected

docker

#1

Hi guys, pretty simple issue here. The .dockerignore file for my app doesn’t seem to be respected by docker. I’ve checked to make sure that it’s being pulled in from Github but all my ignored files still end up in my container.

Has anyone else faced this issue?


#2

This one is totally my fault here I was running the following

docker run foo/bar npm install && ls

when really I should have been running

docker run foo/bar sh -c 'npm install && ls'


#3