Conditional Logic In Dockerfile
Sometimes when running a Dockerfile you need to run some conditional logic based upon an ARG variable. This can be handy in the instance you want to run a production build or development build or need to run an extra step for production, etc.
When running this you need to pass in the argument ENV as part of your docker build command:
Read this Stackoverflow answer about it here.