How to pass an argument to Dockerfile entrypoint
Sadly the default ENTRYPOINT does not handle variables or arguments, so we to use a workaround and store it in an Environment Variable, which is consumed in a bash command.
ARG DLL_NAME
ENV DLL_NAME=$DLL_NAME
ENTRYPOINT [ "/bin/bash", "-c", "exec dotnet ${DLL_NAME}" ]
An alternative way would