Answers for "conditional dockerfile"

0

conditional dockerfile

docker build --build-arg "ENV=PROD" ...
Posted by: Guest on July-26-2021
0

conditional dockerfile

if [ ${ENV} = "DEV" ]; then 
    composer install
else
    npm install
fi
Posted by: Guest on July-26-2021
0

conditional dockerfile

...
COPY install.sh install.sh
RUN chmod u+x install.sh && ./install.sh
...
Posted by: Guest on July-26-2021

Browse Popular Code Answers by Language