Docker containers
Working with Docker containers
As a general rule, we should approach working with Docker containers in the following way:
- Use a single working branch;
main
- Start building your application with the TNA application templates or the base Python images
- Build images for pushes to all working branches
- Clean up images created from working branches after you merge to
main
- Regularly delete untagged images
- Use production values by default and overwrite them for lower environments
- Add a healthcheck endpoint in your application
/healthcheck/live/
that returns a200
- Don't include development dependencies such as Pytest or Webpack in your production image