Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

conditional dockerfile

if [ ${ENV} = "DEV" ]; then 
    composer install
else
    npm install
fi
Comment

conditional dockerfile

docker build --build-arg "ENV=PROD" ...
Comment

conditional dockerfile

...
COPY install.sh install.sh
RUN chmod u+x install.sh && ./install.sh
...
Comment

PREVIOUS NEXT
Code Example
Shell :: git pull shows already up to date 
Shell :: functions in linux 
Shell :: apache enable module 
Shell :: ubuntu remove all folders but keep some 
Shell :: portainer ce install 
Shell :: square root in bash script 
Shell :: mongodb installation on mac 
Shell :: ng generate service 
Shell :: linux modem manager 
Shell :: move all files in a directory linux 
Shell :: az aks get-credentials 
Shell :: install pyyaml ubuntu 
Shell :: list groups of an user linux 
Shell :: unmount linux disk 
Shell :: git get develop to feature branche 
Shell :: access wsl filesystem from windows 
Shell :: ufw allow port from ip 
Shell :: install appx 
Shell :: install homebrew 
Shell :: gcc alternatives 
Shell :: flutter run all 
Shell :: git already up to date but not 
Shell :: install net tools in manjaro 
Shell :: scp key 
Shell :: kubectl live logs 
Shell :: Module enzyme-to-json/serializer in the snapshotSerializers option was not found. <rootDir is 
Shell :: kubernetes delete all from namespace 
Shell :: Install Zenkit on Linux 
Shell :: how to install flutter linux 
Shell :: how to hide hostname mac terminal 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =