3. Dockerfile
Contents
Best practices for writing Dockerfiles
2021 Write a Good Dockerfile in 19 'Easy' Steps
2020 Docker for Java developers: 5 things you need to know not to fail your security
2020 A Hitchhiker's Guide to Containerizing (Spring Boot) Java Apps very good blog post for Java and Python
2020 Speed Up Your Development Flow With These Dockerfile Best Practices
2019 10 Docker Security Best Practices
2019 Intro Guide to Dockerfile Best Practices
Best practices...
- one single process per container
- use official/trusted base images
- don't use latest tag in production
- cleanup your layers (order...)
- use multi-stage builds
- avoid running as root
- avoid curl bashing