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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -