We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c30a1e7 commit e900172Copy full SHA for e900172
src/dockerfile.ml
@@ -581,6 +581,9 @@ let layers (t : t) : int =
581
| `From _ | `Run _ | `Copy _ | `Add _ -> true
582
| _ -> false
583
in
584
- List.fold_left (fun acc l -> if is_layer l then acc + 1 else acc) 0 t
+ List.fold_left
585
+ (fun acc l ->
586
+ match l with `From _ -> 1 | _ -> if is_layer l then acc + 1 else acc)
587
+ 0 t
588
589
let pp ppf tl = Fmt.pf ppf "%s" (string_of_t tl)
0 commit comments