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

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 ...

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