//=== https://docs.docker.com/articles/dockerfile_best-practices
# Dockerfile
COPY local_files container_folder
"""...
Although ADD and COPY are functionally similar, generally speaking,
COPY is preferred. ...
COPY only supports the basic copying of local files into the container,
...
Because image size matters, using ADD to fetch packages from remote URLs is strongly discouraged;
you should use curl or wget instead. That way you can delete the files you no longer need ...
..."""
//=== http://stackoverflow.com/questions/24958140/docker-copy-vs-add
ADD === COPY + ( tar and remote url handling )
2015年3月13日 星期五
Dockerfile, COPY or ADD ?
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言