Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.nirima.docker.dockerfile;
 
 
import  javax.annotation.Nullable;
Parse a dockerfile
public class Dockerfile {
    private File dockerFile;
    public Dockerfile(File dockerFile) {
        this. = dockerFile;
    }
        List<StringdockerFileContent = FileUtils.readLines();
        return Collections2.transform(dockerFileContentnew Function<StringDockerfileStatement>() {
            @Override
            public DockerfileStatement apply(@Nullable String input) {
                return DockerfileStatement.createFromLine(input);
            }
        });
   }
New to GrepCode? Check out our FAQ X