dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p crypticpassword
dotnet dev-certs https --trust
docker pull microsoft/dotnet-samples:aspnetapp
docker run --rm -it -p 8000:80 -p 8001:443 -e ASPNETCORE_URLS="https://+;http://+" -e ASPNETCORE_HTTPS_PORT=8001 -e ASPNETCORE_Kestrel__Certificates__Default__Password="crypticpassword" -e ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx -v %USERPROFILE%\.aspnet\https:/https/ microsoft/dotnet-samples:aspnetapp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:2.1-sdk AS build | |
WORKDIR /app | |
EXPOSE 80 | |
# copy csproj and restore as distinct layers | |
COPY src/nuget.config ./src/ | |
COPY src/*.sln ./src/ | |
COPY src/Qbank.Questions/*.csproj ./src/Qbank.Questions/ | |
COPY src/Qbank.Questions.WebApi/*.csproj ./src/Qbank.Questions.WebApi/ | |
COPY test/Qbank.Questions.Test/*.csproj ./test/Qbank.Questions.Test/ |
NewerOlder