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