dotnetcore Docker
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 WORKDIR /app COPY . . EXPOSE 8001 ENV ASPNETCORE_URLS "http://*:8001" ENV ASPNETCORE_ENVIRONMENT "PD" ENTRYPOINT ["dotnet", "dotnetcore-docker.dll"]
进入docker容器内部:
docker exec -it 6a92baf196f2 /bin/bash