Installing a pfx file into a docker

I’m new to docker and trying to install a pfx certificate into the container. I’ve already configured SSL using the environment variable for PFX file and password. and that is working fine.

My application is using a certificate authentication to access a web api. so I want to install the certificate into the image. I know it is not best practice to install the certificate into the image but for now, I’m at least trying to get it working.
I tried to follow below article but couldn’t get it working for Windows Docker. for whatever reason, Visual Studio doesnt respect the ENTRYPOINT setting.

Looking forward for some pointers.