meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:docker:dockerfile [2017/02/10 12:32] – created niziak | linux:docker:dockerfile [2021/05/16 18:02] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Dockerfile ====== | ||
+ | |||
+ | ====== Build process ====== | ||
+ | |||
+ | Docker process '' | ||
+ | [[https:// | ||
+ | |||
+ | ==== FROM ==== | ||
+ | |||
+ | ==== ENTRYPOINT ==== | ||
+ | |||
+ | ==== RUN ==== | ||
+ | |||
==== ADD ==== | ==== ADD ==== | ||
[[https:// | [[https:// | ||
- | + | * Copy new files, directories or URLs and adds them to filesystem of image | |
- | Copy new files, directories or URLs and adds them to filesystem of image | + | |
- | All new files and directories are created with a UID and GID of 0. | + | |
- | It supports TAR archive (gzip, bzip2 compressed) | + | |
==== COPY ==== | ==== COPY ==== | ||
[[https:// | [[https:// | ||
- | Copy new files or directories to the filesystem of container (not adding to image) | + | * Copy new files or directories to the filesystem of container (not adding to image) |
- | All new files and directories are created with a UID and GID of 0. | + | |
- | + | ||
- | | + | |
> Because image size matters, using ADD to fetch packages from remote URLs is strongly discouraged; | > Because image size matters, using ADD to fetch packages from remote URLs is strongly discouraged; | ||
> That way you can delete the files you no longer need after they' | > That way you can delete the files you no longer need after they' | ||
- | > RUN mkdir -p / | + | >> RUN mkdir -p / |
- | > && curl -SL http:// | + | >> && curl -SL http:// |
- | > | tar -xJC / | + | >> | tar -xJC / |
- | > && make -C / | + | >> && make -C / |
> For other items (files, directories) that do not require ADD’s tar auto-extraction capability, you should always use COPY." | > For other items (files, directories) that do not require ADD’s tar auto-extraction capability, you should always use COPY." | ||
From source code comment: | From source code comment: | ||
- | | + | >Same as ' |
| | ||
Line 31: | Line 41: | ||
> | > | ||
> | > | ||
+ | |||
+ | |||
+ | ==== EXPOSE ==== | ||
+ | ==== VOLUME ==== | ||
| |