具有多个docker文件的Git repo结构

时间:2015-11-26 05:32:43

标签: node.js git nginx redis docker

构建具有多个Scanner scan = new Scanner(new File("src/p/input2.txt")); ArrayList<String> words = new ArrayList<String>(); while(scan.hasNextLine()) { String readLine = scan.nextLine(); if(readLine.equals("*")) { // if you want just skip line then use use continue-keyword // continue; // if you want just stop parsing then use use break-keyword break; } words.add(readLine); } 供应服务的存储库/项目的最佳方法是什么。

e.g。

Dockerfile #build Nodejs app server

Dockerfile #build Nginx转发代理

Dockerfile#build Redis缓存服务器

存储库中包含此信息的最佳做法标准结构是什么?

1 个答案:

答案 0 :(得分:1)

每个Dockerfile通常有一个文件夹,如:

  • 每个人在执行各自的docker build -t xxx .
  • 时可以使用多个其他资源文件(配置文件,数据文件......)
  • 每个人都可以拥有自己的.dockerignore

例如,我的project b2d每个应用程序都有一个Dockerfile:

Dockerfiles