INNER CODE UNIT · Go
TestBuildFromScratch
genuinetools/img · build_test.go:79
func TestBuildFromScratch(t *testing.T) {
name := "testbuildfromscratch"
runBuild(t, name, withDockerfile(`
FROM scratch
COPY . .
`))
}
func TestBuildDockerfileNotInContext(t *testing.T) {
name := "testbuilddockerfilenotincontext"
run(t, "build", "-t", name, "-f", "testdata/Dockerfile.test-build-dockerfile-not-in-context", "types")
}
func TestBuildDockerfileNotInContextRoot(t *testing.T) {
name := "testbuilddockerfilenotincontextroot"