TheAngryByrd / MiniScaffold

F# Template for creating and publishing libraries targeting .NET 6.0 `net6.0` or console apps .NET 6.0 `net6.0`.
https://www.jimmybyrd.me/MiniScaffold/
MIT License
267 stars 31 forks source link

Adjust Dockerfiles to copy install-dotnets.sh correctly on new versions of Docker. #257

Closed StachuDotNet closed 2 years ago

StachuDotNet commented 2 years ago

I faced an issue using the devcontainer locally, and turned out to be resolved by this little change: https://stackoverflow.com/questions/53650492/when-using-copy-with-more-than-one-source-file-the-destination-must-be-a-direct

This adjusts the Dockerfiles to have a trailing / on the end of the COPY ./.devcontainer/install-dotnets.sh global.json* . lines.

I haven't tested this with other (older?) versions of Docker, but suspect it'll be fine. FWIW I'm currently on Docker version 20.10.14, build a224086

TheAngryByrd commented 2 years ago

Thanks!