Wednesday, October 9, 2019

Docker


Simple docker file

FROM mcr.microsoft.com/dotnet/core/runtime:2.1 AS base
WORKDIR /app
EXPOSE 5000
COPY . .
ENTRYPOINT ["dotnet", "BBK.Web.Host.dll"]


  1. get .net run time for .net core 2.1
  2. on docker container go app folder
  3. expose 5000 on docker container.
  4. copy local/current folder to docker/app
  5. run cmd command 
--------------------------------------------------------------------

Connect localhost services from docker
appsetting.json

Server=host.docker.internal; Port=3306; Database=bbkhf; Uid=root; Pwd=dsfdsdfsdf$;"

--------------------------------------------------------------------







No comments:

Post a Comment

Sql server row level policy