How to name Dockerfiles

前端 未结 10 1033
谎友^
谎友^ 2020-12-22 22:17

I\'m unsure of how to name Dockerfiles. Many on GitHub use Dockerfile without a file extension. Do I give them a name and extension; if so what? Or do I just ca

10条回答
  •  鱼传尺愫
    2020-12-22 22:44

    dev.Dockerfile, test.Dockerfile, build.Dockerfile etc.

    On VS Code I use .Dockerfile and it gets recognized correctly.

提交回复
热议问题