- Dockerfiles changes - Minor csproj updates to bring back "dotnet bundle" cli - Enable all protocols in SignalR - Update package-lock.json in spa
19 lines
453 B
Docker
19 lines
453 B
Docker
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
|
|
WORKDIR /app
|
|
EXPOSE 80
|
|
|
|
FROM microsoft/dotnet:2.1-sdk AS build
|
|
WORKDIR /src
|
|
COPY . .
|
|
WORKDIR /src/src/Services/Ordering/Ordering.API
|
|
RUN dotnet restore -nowarn:msb3202,nu1503
|
|
RUN dotnet build --no-restore -c Release -o /app
|
|
|
|
FROM build AS publish
|
|
RUN dotnet publish --no-restore -c Release -o /app
|
|
|
|
FROM base AS final
|
|
WORKDIR /app
|
|
COPY --from=publish /app .
|
|
ENTRYPOINT ["dotnet", "Ordering.API.dll"]
|