A docker image is a file containing everything required to make an application run. This includes application executable, dependencies, libraries and runtime environment. A docker container is a running instance of an image.

Image source: https://medium.com/swlh/understand-dockerfile-dd11746ed183

To create a docker image, one needs to answer the question, how does this application normally run, without docker? This answer then guides the developer in creating a Dockerfile, which is a file using in specifying instructions for building a docker image.

Building a static HTML website docker image

How does a website run normally? To run a website, we need a web server, for example Nginx or Apache (feel free to choose either…

Peter Mutisya

Software Engineer - Innovation lead Meliora Technologies

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store