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

 

posted @ 2020-06-29 10:13  hausthy  阅读(128)  评论(0编辑  收藏  举报