Get file from private repo into dockerfile

I currently split my frontend and backend into two separate git repos.

Each repo has a dockerfile that creates an image and publishes it in a private registry.

  • Docker, how to add a folder in OS Ubuntu in Container
  • What is the difference between docker and docker-compose
  • ImageMagick Go API HTTP Hangs on ReadImageBlob
  • Cannot return to shell session after script
  • Docker-based PAAS supporting multiple containers
  • Kubelet image GC for docker “Data Space Total” instead of disk space
  • Now, for the backend repo, I’d like to get the compiled production JS/CSS assets from the frontend image and place them in a folder in my backend repo to serve them.

    What is the best way to accomplish this?

  • Passing arguments to docker swarm containers
  • Rancher can pull images from private registry
  • Jenkins shell script execution on different server
  • Not able to connect to docker containers using SSH [closed]
  • How to access Docker from outside the machine its hosted on?
  • Installing a .exe on a windows container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.