|
@ -5,10 +5,11 @@ EXPOSE 80 |
|
|
FROM microsoft/aspnetcore-build:2.0 AS build |
|
|
FROM microsoft/aspnetcore-build:2.0 AS build |
|
|
WORKDIR /src |
|
|
WORKDIR /src |
|
|
COPY . . |
|
|
COPY . . |
|
|
RUN dotnet build -c Release -nowarn:msb3202,nu1503 |
|
|
|
|
|
|
|
|
RUN dotnet restore -nowarn:msb3202,nu1503 |
|
|
|
|
|
WORKDIR /src/src/Web/WebMVC |
|
|
|
|
|
RUN dotnet build --no-restore -c Release -o /app |
|
|
|
|
|
|
|
|
FROM build AS publish |
|
|
FROM build AS publish |
|
|
WORKDIR /src/src/Web/WebMVC |
|
|
|
|
|
RUN bower install --allow-root |
|
|
RUN bower install --allow-root |
|
|
RUN dotnet bundle |
|
|
RUN dotnet bundle |
|
|
RUN dotnet publish --no-restore -c Release -o /app |
|
|
RUN dotnet publish --no-restore -c Release -o /app |
|
|