Skip to content

Instantly share code, notes, and snippets.

@MrDave1999
Forked from endofcake/Dockerfile
Created November 13, 2023 19:35
Show Gist options
  • Save MrDave1999/ffe79f485358c7631257938b1905d9e3 to your computer and use it in GitHub Desktop.
Save MrDave1999/ffe79f485358c7631257938b1905d9e3 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