if [ ${ENV} = "DEV" ]; then composer install else npm install fi
docker build --build-arg "ENV=PROD" ...
... COPY install.sh install.sh RUN chmod u+x install.sh && ./install.sh ...