Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base
- WORKDIR /app
- EXPOSE 80
- EXPOSE 443
- FROM microsoft/dotnet:2.2-sdk AS build
- WORKDIR /src
- COPY / /src/Services/MyApi/
- WORKDIR /src/Services/MyApi/MyApi.Api
- RUN dotnet restore MyApi.csproj -nowarn:msb3202,nu1503
- FROM build AS publish
- RUN dotnet build MyApi.csproj --no-restore -c Release -o /app
- FROM base AS final
- WORKDIR /app
- COPY --from=publish /app .
- ENTRYPOINT ["dotnet", "MyApi.dll"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement