As part of learning docker, I’ve built an image (Ubuntu 14.04 LTS) with NodeJS and NGINX installed.
On my Dockerfile I create an app with express, install angular and then I have a problem
NGINX is not running when the container is created (maybe because it configured to pass traffic to port 3000, and no process listens to it), and for the app to run I have to write:
CMD npm start on my Dockerfile
Without NGINX running, the app won’t work
I’ve tried to create
/etc/init/nginx.conf making upstart to run it on boot, but it doesn’t work
What can I do to create my app, and still make both nginx and npm to run?
Thanks : )