Help Center/ ModelArts/ FAQs/ Image/ How Do I Configure Environment Variables for an Image in a Dockerfile?
Updated on 2026-04-20 GMT+08:00

How Do I Configure Environment Variables for an Image in a Dockerfile?

In a Dockerfile, use the ENV instruction to configure environment variables. For details, see Dockerfile reference.