User Tools

Site Tools


dockerfiles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dockerfiles [2019/10/08 12:31]
rpjday [FROM]
dockerfiles [2019/10/08 15:02]
rpjday [RUN]
Line 9: Line 9:
   * Does every new FROM directive start a new "build stage"?​   * Does every new FROM directive start a new "build stage"?​
   * What is the scope of an ENV versus ARG directive?   * What is the scope of an ENV versus ARG directive?
-  * Can a context be a local tarball?+  * Can a context be a local tarball? Others?
   * How to use ''​--cache-from''?​   * How to use ''​--cache-from''?​
  
Line 76: Line 76:
 Two forms: Two forms:
  
-  * shell+  * shell (prefixed with ''/​bin/​sh -c''​)
   * exec   * exec
  
-Each RUN commits a new image.+Each RUN commits a new image, used in the next step.
  
 To set environment for a single command: To set environment for a single command:
dockerfiles.txt ยท Last modified: 2020/01/03 11:58 by rpjday