Perform an if-then-else in a Dockerfile

by Dec 26, 2025IT Tips0 comments

RUN if [ $(arch) = "aarch64" ] ; then apt-get -y install chromium ; else echo Chromium NOT needed ; fi

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.