Skip to content
Permalink
Browse files

fix(Dockerfile): better integration with cli-bundler & dotnet template

  • Loading branch information
shahabganji authored and 3cp committed Sep 6, 2019
1 parent 1cefad4 commit 8fa9ee6d6188dd6f91daf53b4df305e65fc454de
Showing with 10 additions and 2 deletions.
  1. +10 −2 skeleton/docker/Dockerfile
@@ -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
@@ -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

0 comments on commit 8fa9ee6

Please sign in to comment.
You can’t perform that action at this time.