docker - Dockerfile naming, .dockerfile vs Dockerfile -


i'm new dockerfile nomenclature , have noticed few different examples of dockerfiles in repos throughout org including following types:

  • dockerfile
  • dockerfile.build
  • .dockerfile

is there somewhere can find detailed explanation different use cases , purposes of each?

docker build [options] path | url | - build command docker, details here.

docker build command expects file name dockerfile. so, in case, can

docker build . 

on other cases, have specify full name

docker build -f dockerfile.build . 

so file name has nothing container itself. naming own convenience.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -