How to speed up Docker build

Viewed 10759

I'm trying to create a Dockerfile for a project I'm working on. Installing all the required packages through apt and pip takes a couple of minutes. Since the required packages don't change, is there a way so I can skip to the steps that do change?

I'm running Docker CE on OS X (version 17.06.2-ce-mac27).

2 Answers
Related