How to update PATH environment variable in a Dockerfile? To update the PATH environment variable in a Dockerfile, you can use the ENV instruction to set the new value of the PATH variable.