The Stack Overflow podcast is back! Listen to an interview with our new CEO.
3

So you can use two build stages in your Dockerfile so you don't end up having unnecessary things inside container. Anything from first stage is gone until you move it to second stage. Something like: FROM whatever as build-stage WORKDIR /app RUN apt-get update && apt-get install -y unzip RUN wget https://getcomposer.org/download/1.8.3/composer.phar ...


Only top voted, non community-wiki answers of a minimum length are eligible