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
dockerfiles [2019/12/30 09:23]
rpjday [FROM]
dockerfiles [2020/01/03 11:58] (current)
rpjday [Q]
Line 18: Line 18:
 ===== Q ===== ===== Q =====
  
 +  * Applicability of Containerfile?​ Also "​.in"​ suffix for podman?
   * COPY versus ADD?   * COPY versus ADD?
   * Does every new FROM directive start a new "build stage"?​   * Does every new FROM directive start a new "build stage"?​
Line 23: Line 24:
   * Can a context be a local tarball? Others?   * Can a context be a local tarball? Others?
   * How to use ''​%%--%%cache-from''?​   * How to use ''​%%--%%cache-from''?​
 +  * relevance of ''​.dockerignore''​ with ''​podman''/''​buildah''?​
 +  * Can we display context?
  
 ===== Usage ===== ===== Usage =====
Line 51: Line 54:
   * syntax (BuildKit only)   * syntax (BuildKit only)
  
-==== .dockerignore ====+==== .dockerignore ​(in root dir of context) ​====
  
-You can safely exclude ''​Dockerfile''​ and ''​.dockerignore'';​ they'​re sent, anyway.+  * You can safely exclude ''​Dockerfile''​ and ''​.dockerignore'';​ they'​re sent, anyway. 
 +  * Uses Go's filepath.Match rules 
 +  * Also ''​**/​*.go'',​ and exceptions using ''​!''​ 
 +  * last match takes precedence
  
 ===== Dockerfile directives ===== ===== Dockerfile directives =====
Line 104: Line 110:
 </​code>​ </​code>​
  
-==== COPY ====+==== COPY (preferred unless you need ADD extensions) ​====
  
   * ''​.dockerignore''​ file, see [[https://​docs.docker.com/​engine/​reference/​builder/#​dockerignore-file|here]]   * ''​.dockerignore''​ file, see [[https://​docs.docker.com/​engine/​reference/​builder/#​dockerignore-file|here]]
Line 139: Line 145:
   * TCP if protocol is not specified   * TCP if protocol is not specified
   * use ''​docker run -p/​-P''​ to actually expose ports   * use ''​docker run -p/​-P''​ to actually expose ports
 +
 +==== HEALTHCHECK ====
dockerfiles.1577697810.txt.gz · Last modified: 2019/12/30 09:23 by rpjday