Accelerate build of application in Docker container via CircleCI

I have an application which is built in a Docker container. The build of the Docker container is done via CircleCI.
I am wondering:

  • is there a solution to cache the dependencies of the application in
    Docker container?
  • is there a working solution to cache Docker images in CircleCI? https://circleci.com/docs/docker/#caching-docker-layers
    seems as not a very clean solution

As a temporary solution, I am using a “base image” where software dependencies for my application are stored (Java, Maven, etc.). I am not sure, that it is good to put all the Maven dependencies to my “base image” because dependencies are changing.

  • Separate CI workflows for multiple applications within same Git repo
  • How can I run docker python tests without pre-loading all local machines?
  • How to remove old docker images in continuous integration to save disk space
  • Using docker-compose to start web and backend. How can I get the IP of backend from web?
  • How to handle web application static resources wich browser-cache in kubernetes?
  • Cache gems in GitLab CI bundle build
  • How to I make docker start as a service on OS X?
  • Docker Strategy
  • Docker container not able to locate Zip packages?
  • kubernetes cannot pull local image
  • How do I wait for a pull?
  • Ensure node is running at least a certain kernel version?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.