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.

  • How to handle web application static resources wich browser-cache in kubernetes?
  • Permission error when deploying Docker app from CI server to Heroku
  • nginx as load balancer: upstream with path
  • Jenkins docker cache not working
  • How can we avoid generating cache on host system by Docker Container?
  • How to cache package manager downloads for docker builds?
  • Selecting different code branches when using a shared base image in Docker
  • standard_init_linux.go:178: exec user process caused “no such file or directory”
  • docker how to add host entry to generic image available in docker repository
  • How do I move where Docker Images are stored under Windows 2016
  • Starting a process in the Dockerfile
  • docker login - Keep Session Alive on CI Server - Stay Logged In
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.