Answer the question
In order to leave comments, you need to log in
Why doesn't docker build the asp net core container?
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0
WORKDIR /app
EXPOSE 80
EXPOSE 443
EXPOSE 5432
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
WORKDIR /src
COPY . /AvitoHelper
WORKDIR /AvitoHelper
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "AvitoHelper.dll"]
Failed to download package 'NSwag.AspNetCore.13.1.6' from 'https://api.nuget.org/v3-flatcontainer/nswag.aspnetcore/13.1.6/nswag.aspnetcore.13.1.6.nupkg'.
Received an unexpected EOF or 0 bytes from the transport stream.
Answer the question
In order to leave comments, you need to log in
Check that your machine has Internet and DNS. That is what you can manually download https://api.nuget.org/v3-flatcontainer/nswag.aspne...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question