构建具有多个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缓存服务器
存储库中包含此信息的最佳做法和标准结构是什么?
答案 0 :(得分:1)
每个Dockerfile通常有一个文件夹,如:
docker build -t xxx .
.dockerignore
例如,我的project b2d
每个应用程序都有一个Dockerfile: