Coud’nt connect windows docker core App to azure Sql database

I want to connect my Azure SQL databae to docker container Core , which containe integration test
when i run docker build -t test -f dockerFile
i get these erreurs

1- Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[3]
Exception occurred while processing message.
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: ‘System.String’.
at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()

2- The instance of SQL Server you attempted to connect to requires encryption but this machine does not support it.

3 – An error occurred using the connection to database

My connection string be like :

",1433;Initial Catalog=AppName;Persist Security Info=False;User ID=User;Password=Password;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"

Source: Docker Questions