I have a node app, that is packaged into an executable.
When I run the executable from a docker build image, the container stopped right after start, even with -td like stackoverflow articles suggest.
I then added a bash script to run the application then tail -f thelogs.
this allows the container to stay running, but is this a hacky work around?
Is there a better way to make the container run, instead of tailing the log file?
Another best practice question, when i do a docker build, i have a few required scripts that install the application through the command line interface which requires COPY of the script and the .tar of the application.
I feel like if someone is going to use the Dockerfile they will need all the auxiliary scripts is kinda klunky.
Is there a better approach to getting the users the required files?
Is github the best way to accomplish this?
Thank you for your time and patience,
Happy docker explorer.