Skip to content

Instantly share code, notes, and snippets.

@endofcake
Last active May 6, 2024 17:20
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save endofcake/8af9f7debbd3e8784a15db48c37b5b42 to your computer and use it in GitHub Desktop.
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)
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