Writing Dockerfiles
Overview
Teaching: 25 min
Exercises: 10 minQuestions
What is a
Dockerfile?How do I write my own
Dockerfile?What are some
Dockerfile“best practices”?Objectives
Explain what is a
Dockerfile.Write a
Dockerfilefor one of your own research projects.Use an automated tool to check that your
Dockerfileconforms with best practices.
Key Points
A
Dockerfileis a text document that contains all the commands a user could call on the command line to assemble an image.???
The official
Dockerfilereference is the best resource for writing aDockerfile.Always use a
Dockerfilelinter, such as fromlatest.io, to make sure that yourDockerfileconforms to “best practices”.