I'm deploying an app with a start-up script that generates cache data if it does not exist, if it does exist this process will be skipped and the main app will run, this is all controled by ENTRYPOINT["/opt/entrypoint.sh"]
, a customs script that determines which thing to do based on scenario.
The problem I'm having is that AWS ECS kills the container and marks it unhealthy. However, it's running the entrypoint.sh specified in the Dockerfile
. What is "unhealthy" about it? How can I keep the cache generation going before starting the main app in the container? This is a one-time process that occurs when the image is first pulled and run as a local container.