Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| dockerfiles [2019/12/30 09:23] – [FROM] rpjday | dockerfiles [2020/01/03 11:58] (current) – [Q] rpjday | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| ===== Q ===== | ===== Q ===== | ||
| + | * Applicability of Containerfile? | ||
| * 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 '' | * How to use '' | ||
| + | * relevance of '' | ||
| + | * Can we display context? | ||
| ===== Usage ===== | ===== Usage ===== | ||
| Line 51: | Line 54: | ||
| * syntax (BuildKit only) | * syntax (BuildKit only) | ||
| - | ==== .dockerignore ==== | + | ==== .dockerignore |
| - | You can safely exclude '' | + | * You can safely exclude '' |
| + | * Uses Go's filepath.Match rules | ||
| + | * Also '' | ||
| + | * last match takes precedence | ||
| ===== Dockerfile directives ===== | ===== Dockerfile directives ===== | ||
| Line 104: | Line 110: | ||
| </ | </ | ||
| - | ==== COPY ==== | + | ==== COPY (preferred unless you need ADD extensions) |
| * '' | * '' | ||
| Line 139: | Line 145: | ||
| * TCP if protocol is not specified | * TCP if protocol is not specified | ||
| * use '' | * use '' | ||
| + | |||
| + | ==== HEALTHCHECK ==== | ||