What files do you typically put in .dockerignore

Viewed 3418

I am building a Django application with docker. I would like to know for Django or general development work using docker, what files are typically included in the .dockerignore. I am thinking of the following for now:

  • .git
  • *.pyc
2 Answers

This what I typically put in .dockerignore for dockerized Django apps

**/*.pyc
**/*.pyo
**/*.mo
.gitignore
.git/
**/__pycache__/
Dockerfile
db.sqlite3
**/*.md
Related