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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -