Is it possible to optionally use the docker COPY instruction? -


i'm using docker copy instruction copy files <src> <dest> described in documentation. possible there no <src> file causes docker-compose build fail. so:

step 7 : copy cts/application.properties /cts/ error: service 'redirector' failed build: lstat cts/application.properties: no such file or directory 

is there way copy file if it's there or turn off errors?

the way that, copying files inside cts folder, that, can user copy wildcard.

copy cts/* /cts/ 

or set workdir cts, copy files, , set workdir

workdir cts/ add . /cts/ workdir old_workdir_path 

but, if want copy conditionally 1 file using copy command, can't.


Comments