This seems to be an issue with a dependency in your code as indicated by
from helper1.task_logger import TaskRunMetadata
Last time I faced a similar issue, I found out it was a version mismatch between my base image and the library I was installing. Quick question, are you using the same base image for both dev and prod containers? Do you mind sharing your dockerfile and possibly the part of dcompose for that dockerfile?