<commit_before>// Module included in the following assemblies:
//* assembly/builds

[id="builds-strategy-docker-from-image_{context}"]
= Replacing Dockerfile FROM image

You can replace the `FROM` instruction of the *_Dockerfile_* with the `from` of
the `BuildConfig`.

.Procedure

To replace the `FROM` instruction of the *_Dockerfile_* with the `from` of
the `BuildConfig`.

[source,yaml]
----
strategy:
  dockerStrategy:
    from:
      kind: "ImageStreamTag"
      name: "debian:latest"<commit_msg>Bug 1784532: Clarify FROM behavior in builds.<commit_after>// Module included in the following assemblies:
//* assembly/builds

[id="builds-strategy-docker-from-image_{context}"]
= Replacing Dockerfile FROM image

You can replace the `FROM` instruction of the *_Dockerfile_* with the `from` of
the `BuildConfig`. If the *_Dockerfile_* uses multi-stage builds, the image in
the last `FROM` instruction will be replaced.

.Procedure

To replace the `FROM` instruction of the *_Dockerfile_* with the `from` of
the `BuildConfig`.

[source,yaml]
----
strategy:
  dockerStrategy:
    from:
      kind: "ImageStreamTag"
      name: "debian:latest"
{'fraction_non_alphanumeric': 0.10945709281961472, 'fraction_numerical': 0.006129597197898424, 'mean_word_length': 4.442857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '125850', 'n_tokens_mistral': 369, 'n_tokens_neox': 343, 'n_words': 123}