1

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.

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?

Tarlen
  • 3,657
  • 8
  • 30
  • 54
  • 1
    What's the purpose of the frontend image? – Henry Apr 29 '17 at 13:17
  • It compiles my frontend JS application into a single `app.js` file that I want to place inside my `/public` folder in my backend repo as my web framework servers static assets from this directory – Tarlen Apr 29 '17 at 13:32
  • I think what Henry meant is that you don't really need a Dockerfile to compile a JS application. – Adam Byrtek Apr 29 '17 at 14:01
  • I know that, but I am using it to avoid having to rebuild the frontend on every backend release. Besides that, I don't see how else I'd get access to the compiled frontend assets in my backend repo during its build – Tarlen Apr 29 '17 at 14:42

0 Answers0