免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2015年3月13日 星期五

Dockerfile RUN


//=== 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


沒有留言:

張貼留言