Is there a way to install any application inside docker container , only when it has not been installed before?
For example;
RUN apt-get install -y nginx
Will install nginx everytime on a new rebuild. How would one check if nginx already exists? If not install else just update or do nothing. Is this possible somehow? I have good reasons to need nginx inside another container for now getting things up and running lateron could move to seperating nginx to own container.