Docker 16 🐳 Setting Environment Variables and Working Directories: ENV, ARG, and WORKDIR
Every Dockerfile that installs software, compiles code, or configures a runtime needs to control two things: the values that parameterize the build and the environment in which the application runs. ARG provides build-time variables that exist only during the image build. ENV provides environment variables that persist into the running container. WORKDIR sets the working…