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
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ COPY src ./src
COPY test ./test
// @endif

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

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

// @if feat["dotnet-core"]
// @if feat.webpack && feat["dotnet-core"]
COPY --from=publish /app/wwwroot/dist/ .
// @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"]
COPY --from=publish /app/bootstrap/dist/ ./bootstrap/dist/
// @endif
Expand Down

0 comments on commit 8fa9ee6

Please sign in to comment.