Skip to content

Instantly share code, notes, and snippets.

@tstirrat15
Created July 17, 2019 21:01
Show Gist options
  • Save tstirrat15/76eee8a638c6d89cbbe83b4307a5e44b to your computer and use it in GitHub Desktop.
Save tstirrat15/76eee8a638c6d89cbbe83b4307a5e44b to your computer and use it in GitHub Desktop.
Am I missing something?

The file seems to be there...

➜  myrepo git:(master) ✗ ls .dockerignore 
.dockerignore

And here's what the file looks like:

➜  myrepo git:(master) ✗ cat .dockerignore 
.git
node_modules
build
coverage

When I run the command, it goes and tries to shove both node_modules and build into the context:

➜  myrepo git:(master) ✗ docker build . --target development -t myrepo/myproject:latest 
^Cnding build context to Docker daemon  209.5MB

The unignored files shouldn't total to more than ~20mb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment