Last active
October 23, 2024 06:24
-
-
Save endofcake/8af9f7debbd3e8784a15db48c37b5b42 to your computer and use it in GitHub Desktop.
Copy *.csproj files during a docker build, preserving the directory structure (kudos to @aidansteele)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COPY src/*/*.csproj ./ | |
RUN for file in $(ls *.csproj); do mkdir -p ${file%.*}/ && mv $file ${file%.*}/; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment