-
|
I have a SPA React app wrapped in a Dockerfile to run the build, produce static files, and place them in a pre-mounted volume (which is also mounted to a separate backend resource to host them). The frontend and backend are in separate repositories; the only connection point is a shared volume. This setup is not a monorepo with a compose file. The problem is to perform the build inside the Docker container once and then stop it. Obviously, a container whose purpose is to run the build command will exit when done, but Coolify tries to restart it in a loop. How do I prevent it from restarting on resource exit? Apparently, I need to pass the Running *test front build repo - https://github.com/SanariSan/coolify-f |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hello ... just sharing :) |
Beta Was this translation helpful? Give feedback.


Hello ... just sharing :)
I had the same question, but I finally succeeded in working it out by using a Docker Compose deployment. In the Compose file, you can set restart: 'no'.