dockerfile - Docker COPY with folder wildcards -


given file structure this:

project root |-- x.sln |-- src |    |-- foo |    |    |-- foo.fsproj |    |    |-- foo.fs |    |-- bar |         |-- bar.fsproj |         |-- bar.fs |-- test      |-- baz           |-- baz.fsproj 

i'd first add .fsproj files docker image, run command, add rest of files. tried following, of course didn't work:

copy x.sln . copy **/*.fsproj . run dotnet restore copy . . run dotnet build 

the idea after first 2 copy steps, file tree on image this:

working dir |-- x.sln |-- src |    |-- foo |    |    |-- foo.fsproj |    |-- bar |         |-- bar.fsproj |-- test      |-- baz           |-- baz.fsproj 

and rest of tree added in after run dotnet restore.

is there way emulate behavior, preferably without resorting scripts outside of dockerfile?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -