April 18, 2020 · docker dockerfile

8 Dockerfile instructions you must know

The first step towards dockerizing your application is to package your application along with its runtime and to build an image with it.  In order to do this, you must master the art of writing Dockerfiles, and to master that, you must know about the following instructions

  1. FROM
  2. WORKDIR
  3. COPY (and ADD)
  4. RUN
  5. EXPOSE
  6. CMD
  7. ENV
  8. ENTRYPOINT

This video explains each of the instructions above in depth. Its a long video (20+minutes), but a must watch for anyone who wants to master the Dockrfile.

If you found this useful, and would like to get updates on such content and more updated on devops, do join our tribe of elite devops ninjas here.  

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket