5 prism_languages: [docker]
42 # Specification for mount point
46 ADD file.xyz /file.xyz
47 COPY --chown=user:group host_file.xyz /path/container_file.xyz
50 ### Run commands in strict shell
54 SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
57 RUN false # fails build like using &&
58 RUN echo "$myvar" # will throw error due to typo
59 RUN true | false # will bail out of pipe
62 Using `shell` will turn on strict mode for shell commands.
67 ONBUILD RUN bundle install
68 # when used with another file
75 CMD ["bundle", "exec", "rails", "server"]
81 ENTRYPOINT ["executable", "param1", "param2"]
82 ENTRYPOINT command param1 param2
85 Configures a container that will run as an executable.
88 ENTRYPOINT exec top -b
91 This will use shell processing to substitute shell variables, and will ignore any `CMD` or `docker run` command line arguments.
100 LABEL "com.example.vendor"="ACME Incorporated"
101 LABEL com.example.label-with-value="foo"
105 LABEL description="This text illustrates \
106 that label-values can span multiple lines."
112 - <https://docs.docker.com/engine/reference/builder/>