Context
I’m trying to deploy an application which has a REST backend and a frontend. I use a docker-compose file. The frontend uses Nuxt to generate a typed TS client from an OpenAPI (Swagger) file. This is a requirement to build the frontend application. The OpenAPI file is made available by our backend, so the backend must be running to allow retrieving the OpenAPI file to be used during the frontend build.
Issue
How can I specify in my frontend Dockerfile or in my docker-compose file that the backend image must be entirely built and then be run and be reachable by the process building the frontend image?
1