pass through custom metadata and accept service env var

s/CODE_FIle/CODE_FILE/