Skip to content

Commit

Permalink
fix(Dockerfile): better integration with cli-bundler & dotnet template
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabganji authored and 3cp committed Sep 12, 2019
1 parent 1cefad4 commit 8fa9ee6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions skeleton/docker/Dockerfile
Expand Up @@ -80,6 +80,10 @@ COPY src ./src
COPY test ./test COPY test ./test
// @endif // @endif


// @if feat["cli-bundler"] && feat["dotnet-core"]
COPY wwwroot ./wwwroot
// @endif

// @if feat.jest || feat.karma // @if feat.jest || feat.karma
# RUN UNIT TESTS # RUN UNIT TESTS
RUN au test RUN au test
Expand All @@ -103,11 +107,15 @@ WORKDIR /usr/share/nginx/html
COPY --from=publish /app/dist/ . COPY --from=publish /app/dist/ .
// @endif // @endif


// @if feat["dotnet-core"] // @if feat.webpack && feat["dotnet-core"]
COPY --from=publish /app/wwwroot/dist/ . COPY --from=publish /app/wwwroot/dist/ .
// @endif // @endif


// @if feat["cli-bundler"] // @if feat["cli-bundler"] && feat["dotnet-core"]
COPY --from=publish /app/wwwroot/ .
// @endif

// @if feat["cli-bundler"] && !feat["dotnet-core"]
// @if feat["scaffold-navigation"] // @if feat["scaffold-navigation"]
COPY --from=publish /app/bootstrap/dist/ ./bootstrap/dist/ COPY --from=publish /app/bootstrap/dist/ ./bootstrap/dist/
// @endif // @endif
Expand Down

0 comments on commit 8fa9ee6

Please sign in to comment.