"args:" are ignored by Kubernetes

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.23
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: aws eks
CNI and version: calico

Hello Ladies & Gentlemen;
I set “args:” for my K8s deploymentspec:

spec:
  template:
    spec:
      containers:
        - name: mycontainer
          args:
          - |
            touch /tmp/testfilehere

The Dockerfile entrypoint is;

ENTRYPOINT [“dotnet”, “WebAPI.dll”]

…also tried;

ENTRYPOINT ["bash", "-c", "dotnet", "WebAPI.dll"]

…nothing changed.Could you please advise what I am missing?

Thanks & Regards