I have created container for dot net core application.This application is connecting to sql server which is set up at some remote server .My container is running fine but i am not able to connect to sql server and getting following error :
net :: ERR_SSL_PROTOCOL_ERROR
Here is my docker file :
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build-env
WORKDIR /app
Copy csproj and restore as distinct layers
#COPY *.csproj ./
#RUN dotnet restore
Copy everything else and build
COPY . ./
RUN dotnet publish appname -c Release -o out
Build runtime image
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0
WORKDIR /app
#COPY --from=build-env /app/out .
COPY --from=build-env /app/out .
ENTRYPOINT [“dotnet”, “appname .dll”]