Dockerfile Best Practices

Dockerfile Best Practices

Docker via YouTube Direct link

Intro

1 of 26

1 of 26

Intro

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Dockerfile Best Practices

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Pocket Guide
  3. 3 Quick refresher on Images
  4. 4 Quick refresher on Build
  5. 5 Areas of improvements
  6. 6 Example project
  7. 7 Order matters for caching
  8. 8 More specific COPY to limit cache bust
  9. 9 Line buddies: apt-get update & install
  10. 10 Remove unnecessary dependencies
  11. 11 Use --no-install-recommends
  12. 12 Remove package manager cache
  13. 13 Reuse official images when possible
  14. 14 Use more specific tags
  15. 15 Build from source in a consistent environment
  16. 16 Cache dependencies
  17. 17 Identify build dependencies
  18. 18 Multi-stage builds to remove build deps
  19. 19 Multi-stage usecases
  20. 20 Various environments: build, dev, test, lint,...
  21. 21 Multi-stage: build concurrently
  22. 22 Benchmarks
  23. 23 Supercharged Docker Build with BuildKit
  24. 24 Context mounts (v18.09 only)
  25. 25 Application cache (v18.09 only)
  26. 26 Improvements recap

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.