Deploying docker container service account k8s error

Hi I was trying to deploy my docker container, but got an error during build showing this. I wasnt sure if there was a way to get around this? I know if I deploy this in k8s on my own using yamls you do need a serviceaccount I assumed since it was building a docker container from Dockerfile it was loading the docker container but not in k8s. Anyway to add a service account during build?

2025-10-24-20:35:42.949+00:00I----- 0x33206082 iag ERROR iag Configurator KubernetesRestClient.cpp 543 0x7725a0712880
IAGPD0130E An error occurred while reading data from the configuration file: ‘/var/run/secrets/kubernetes.io/serviceaccount/namespace’.
2025-10-24-20:35:42.949+00:00I----- 0x33206082 iag ERROR iag Configurator KubernetesRestClient.cpp 543 0x7725a0712880
IAGPD0130E An error occurred while reading data from the configuration file: ‘/var/run/secrets/kubernetes.io/serviceaccount/namespace’.
2025-10-24-20:35:42.949+00:00I----- 0x33206089 iag ERROR iag Configurator iag_configurator.cpp 59 0x7725a0712880
IAGPD0137E The container failed to configure and will not be started.

Would you be able to share a (redacted/obfuscated if you need) copy of the Dockerfile that you’re trying to build?