A contrived development environment using node.
https://github.com/derek-adair/docker-node-sandbox.git
This docker image builds and runs a node app that is compatible with yarn. I use it to easily clone and host javascript projects on my remote development environment. I use it along side with nginx/letsencrypt proxy to easily develop on this code in a cloud-based IDE.
Two things need to be edited in order to modify the port:
expose:80 to expose:{your_port} in docker-compose.ymlyarn add {package_name}
2. docker-compose up --build --force-recreate
*--build and --force-recreate ensure's you get a fresh container and build, I am looking for a better way to handle caching of node_modules, which will make adding/removing/upgrading deps more automatic*
### Using npm instead of yarn
**Spin up node-app container with bash instead of yarn start**
1. docker-compose run node-app bash -il
**In the container install and run the app**
2. npm install && npm start`