//=== https://docs.docker.com/reference/builder/
"""...
RUN has 2 forms:
RUN (the command is run in a shell - /bin/sh -c - shell form)
RUN ["executable", "param1", "param2"] (exec form)
... To use a different shell, other than '/bin/sh', use the exec form passing in the desired shell.
For example, RUN ["/bin/bash", "-c", "echo hello"]
... The exec form is parsed as a JSON array, which means that you must use double-quotes (") around words
not single-quotes (').
... Unlike the shell form, the exec form does not invoke a command shell.
This means that normal shell processing does not happen.
For example, RUN [ "echo", "$HOME" ] will not do variable substitution on $HOME.
..."""
RUN cp src/file1 dest/file1
2015年3月13日 星期五
Dockerfile RUN
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言