Difference between revisions of "Dockerfile"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 9: Line 9:
 
* [[ENV]]
 
* [[ENV]]
 
* [[EXPOSE]]
 
* [[EXPOSE]]
* [[FROM]] https://docs.docker.com/engine/reference/builder/#from                                     
+
* <code>[[FROM]]</code> https://docs.docker.com/engine/reference/builder/#from                                     
 
* [[HEALTHCHECK]] https://docs.docker.com/engine/reference/builder/#healthcheck (>= [[Docker 1.12]])
 
* [[HEALTHCHECK]] https://docs.docker.com/engine/reference/builder/#healthcheck (>= [[Docker 1.12]])
 
* LABEL
 
* LABEL
 
* ONBUILD
 
* ONBUILD
* RUN: https://docs.docker.com/engine/reference/builder/#run
+
* <code>[[RUN]]:</code> https://docs.docker.com/engine/reference/builder/#run
 
* SHELL
 
* SHELL
 
* STOPSIGNAL
 
* STOPSIGNAL

Revision as of 23:05, 17 June 2022

Dockerfile is a text file where you define instructions used to create your Docker images, check official Dockerfile Reference documentation: https://docs.docker.com/engine/reference/builder/[1]

For creating this file with instructions usually called Dockerfile you can use the following keywords[2]:

Activities

  1. Learn differences between RUN and CMD or ENTRYPOINT: https://stackoverflow.com/a/25150809
  2. Read Understand how CMD and ENTRYPOINT interact https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact
  3. Learn about start configuration behavior and restart policy
  4. Learn about .dockerignore file
  5. Read Dockerfile best practices https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

Related terms

See also

  • https://en.wikiversity.org/wiki/DevOps/Docker/Dockerfile
  • https://kapeli.com/cheat_sheets/Dockerfile.docset/Contents/Resources/Documents/index
  • Advertising: